Package maventest
Class MavenBuilder
- java.lang.Object
-
- maventest.MavenBuilder
-
public class MavenBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MavenBuilder()
Constructs new instance of MavenDependencies
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.sonatype.aether.graph.Dependency
asDependency(org.apache.maven.model.Dependency dep)
static java.util.List<org.sonatype.aether.graph.Exclusion>
asExclusions(java.util.Collection<org.apache.maven.model.Exclusion> exclusions)
void
loadDependenciesFromPom(java.io.InputStream pom, java.lang.String location)
Load dependencies from the pom in the input stream.void
loadDependenciesFromPom(java.lang.String path)
void
loadDependenciesFromPom(org.apache.maven.model.building.ModelSource pom)
java.io.File[]
resolveAsFiles()
-
-
-
Method Detail
-
loadDependenciesFromPom
public void loadDependenciesFromPom(java.io.InputStream pom, java.lang.String location)
Load dependencies from the pom in the input stream.- Parameters:
pom
- The pom input stream.location
- Optional name/path of the pom used for displaying errors.
-
loadDependenciesFromPom
public void loadDependenciesFromPom(java.lang.String path)
-
loadDependenciesFromPom
public void loadDependenciesFromPom(org.apache.maven.model.building.ModelSource pom)
-
asDependency
public static org.sonatype.aether.graph.Dependency asDependency(org.apache.maven.model.Dependency dep)
-
asExclusions
public static java.util.List<org.sonatype.aether.graph.Exclusion> asExclusions(java.util.Collection<org.apache.maven.model.Exclusion> exclusions)
-
resolveAsFiles
public java.io.File[] resolveAsFiles()
-
-