public class MavenDependencyBuilder extends Object
A helper class for resolving dependency using maven.
| Constructor and Description |
|---|
MavenDependencyBuilder()
Creates new instance of
MavenDependencyBuilder. |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(String artifactName,
String artifactVersion,
String defaultVersion,
String... exclusions)
Adds the dependency.
|
File[] |
getDependencies()
Retrieves the dependencies.
|
public MavenDependencyBuilder()
Creates new instance of MavenDependencyBuilder.
public void addDependency(String artifactName, String artifactVersion, String defaultVersion, String... exclusions)
Adds the dependency.
artifactName - the artifact nameartifactVersion - the artifact versiondefaultVersion - the artifact default versionexclusions - the names of the artifact which need to excluded during artifact resolvingpublic File[] getDependencies()
Retrieves the dependencies.
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.