Package aQute.maven.provider
Class MetadataParser
java.lang.Object
aQute.maven.provider.MetadataParser
Utilities to parse the metadata XML files. Maven uses a single XSD (see
http://maven.apache.org/ref/3.2.5/maven-repository-metadata/repository-
metadata.html) to represent both the snapshot archives in a
group/artifact/version directory and the version of a group/artifact
combination. In this file we use
Program for the GA combination and
Revision for the GAV combination since there is actually very little
overlap. The parser is a best effort, no validation will take place.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseProgramMetadata(File metafile) Will return a Program MetadataparseRevisionMetadata(File metadataFile) Will return a Revision Metadata
-
Constructor Details
-
MetadataParser
public MetadataParser()
-
-
Method Details
-
parseProgramMetadata
Will return a Program Metadata- Parameters:
in- The inputstream that must point to XML or null of could not be parsed- Returns:
- A description of the XML
- Throws:
Exception
-
parseRevisionMetadata
public static MetadataParser.RevisionMetadata parseRevisionMetadata(InputStream in) throws Exception Will return a Revision Metadata- Parameters:
in- the input stream- Returns:
- the representation
- Throws:
Exception
-
parseRevisionMetadata
public static MetadataParser.RevisionMetadata parseRevisionMetadata(File metadataFile) throws Exception - Throws:
Exception
-
parseProgramMetadata
- Throws:
Exception
-