Package aQute.bnd.maven
Class MavenDependencyGraph
- java.lang.Object
-
- aQute.bnd.maven.MavenDependencyGraph
-
public class MavenDependencyGraph extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classMavenDependencyGraph.Artifact(package private) static classMavenDependencyGraph.Scope
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Map<java.net.URI,MavenDependencyGraph.Artifact>cache(package private) java.util.List<MavenDependencyGraph.Artifact>dependencies(package private) static javax.xml.parsers.DocumentBuilderFactorydocFactory(package private) java.util.List<java.net.URL>repositories(package private) MavenDependencyGraph.Artifactroot(package private) static javax.xml.xpath.XPathFactoryxpathFactory
-
Constructor Summary
Constructors Constructor Description MavenDependencyGraph()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddArtifact(MavenDependencyGraph.Artifact artifact)voidaddRepository(java.net.URL repository)MavenDependencyGraph.ArtifactgetArtifact(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)private java.lang.StringgetPath(java.lang.String path, java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
-
-
-
Field Detail
-
docFactory
static final javax.xml.parsers.DocumentBuilderFactory docFactory
-
xpathFactory
static final javax.xml.xpath.XPathFactory xpathFactory
-
dependencies
final java.util.List<MavenDependencyGraph.Artifact> dependencies
-
repositories
final java.util.List<java.net.URL> repositories
-
cache
final java.util.Map<java.net.URI,MavenDependencyGraph.Artifact> cache
-
root
MavenDependencyGraph.Artifact root
-
-
Method Detail
-
addRepository
public void addRepository(java.net.URL repository)
-
getArtifact
public MavenDependencyGraph.Artifact getArtifact(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
-
getPath
private java.lang.String getPath(java.lang.String path, java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
-
addArtifact
public void addArtifact(MavenDependencyGraph.Artifact artifact) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-