org.apache.ivy.plugins.parser.m2

Class PomModuleDescriptorParser

public final class PomModuleDescriptorParser extends Object implements ModuleDescriptorParser

A parser for Maven 2 POM.

The configurations used in the generated module descriptor mimics the behavior defined by maven 2 scopes, as documented here:
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html The PomModuleDescriptorParser use a PomDomReader to read the pom, and the PomModuleDescriptorBuilder to write the ivy module descriptor using the info read by the PomDomReader.

Method Summary
booleanaccept(Resource res)
static PomModuleDescriptorParsergetInstance()
ArtifactgetMetadataArtifact(ModuleRevisionId mrid, Resource res)
StringgetType()
ModuleDescriptorparseDescriptor(ParserSettings ivySettings, URL descriptorURL, boolean validate)
ModuleDescriptorparseDescriptor(ParserSettings ivySettings, URL descriptorURL, Resource res, boolean validate)
voidtoIvyFile(InputStream is, Resource res, File destFile, ModuleDescriptor md)
StringtoString()

Method Detail

accept

public boolean accept(Resource res)

getInstance

public static PomModuleDescriptorParser getInstance()

getMetadataArtifact

public Artifact getMetadataArtifact(ModuleRevisionId mrid, Resource res)

getType

public String getType()

parseDescriptor

public ModuleDescriptor parseDescriptor(ParserSettings ivySettings, URL descriptorURL, boolean validate)

parseDescriptor

public ModuleDescriptor parseDescriptor(ParserSettings ivySettings, URL descriptorURL, Resource res, boolean validate)

toIvyFile

public void toIvyFile(InputStream is, Resource res, File destFile, ModuleDescriptor md)

toString

public String toString()