Class GalleyAPIWrapper
- java.lang.Object
-
- org.commonjava.maven.ext.io.resolver.GalleyAPIWrapper
-
@Named @Singleton public class GalleyAPIWrapper extends Object
Wraps the galley-maven APIs with the plumbing necessary to resolve using the repositories defined for the maven build.
-
-
Constructor Summary
Constructors Constructor Description GalleyAPIWrapper(GalleyInfrastructure infra)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Document
parseXml(String xml)
MavenXmlView<ProjectRef>
parseXmlView(String xml)
MavenMetadataView
readMetadataView(ProjectRef ref)
MavenPomView
readPomView(ProjectVersionRef ref)
Transfer
resolveArtifact(ArtifactRef asPomArtifact)
String
toXML(Node config, boolean includeXmlDeclaration)
-
-
-
Constructor Detail
-
GalleyAPIWrapper
@Inject public GalleyAPIWrapper(@Named("galley") GalleyInfrastructure infra)
-
-
Method Detail
-
parseXml
public Document parseXml(String xml) throws GalleyMavenXMLException
- Throws:
GalleyMavenXMLException
-
parseXmlView
public MavenXmlView<ProjectRef> parseXmlView(String xml) throws GalleyMavenXMLException
- Throws:
GalleyMavenXMLException
-
readPomView
public MavenPomView readPomView(ProjectVersionRef ref) throws GalleyMavenException
- Throws:
GalleyMavenException
-
readMetadataView
public MavenMetadataView readMetadataView(ProjectRef ref) throws GalleyMavenException
- Throws:
GalleyMavenException
-
resolveArtifact
public Transfer resolveArtifact(ArtifactRef asPomArtifact) throws TransferException
- Throws:
TransferException
-
-