|
ShrinkWrap Resolver Maven API 2.0.0-alpha-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MavenDependencyResolver
An artifact builder is object which holds and construct dependencies and it is able to resolve them into an array of ShrinkWrap archives. Artifact builder allows chaining of artifacts, that is specifying a new artifact. In this case, currently constructed artifact is stored as a dependency and user is allowed to specify parameters for another artifact.
Method Summary | ||
---|---|---|
|
configureFrom(MavenConfigurationType<T> configurationType)
|
|
MavenDependencyResolver |
disableMavenCentral()
Disables touching of Maven Central repository. |
|
MavenDependencyResolver |
goOffline()
Disables touching remote repositories at all, rely on local repository only |
|
EffectivePomMavenDependencyResolver |
loadEffectivePom(String path)
Constructs an effective POM loading a POM file from a given resource, which can be either a path to file or a class path resource. |
|
MavenDependencyResolver |
loadSettings(String userSettings)
Configures Maven from a settings.xml file |
Methods inherited from interface org.jboss.shrinkwrap.resolver.api.DependencyBuilder |
---|
artifact, artifacts |
Method Detail |
---|
<T extends ConfiguredMavenDependencyResolver> T configureFrom(MavenConfigurationType<T> configurationType)
MavenDependencyResolver loadSettings(String userSettings)
userSettings
- A path to a user settings.xml configuration file
IllegalArgumentException
- If userSettings are not suppliedEffectivePomMavenDependencyResolver loadEffectivePom(String path) throws ResolutionException
path
- A path to the POM file, must not be null
or empty
ResolutionException
- If an effective POM cannot be resolvedMavenDependencyResolver disableMavenCentral()
MavenDependencyResolver
MavenDependencyResolver goOffline()
MavenDependencyResolver
|
ShrinkWrap Resolver Maven API 2.0.0-alpha-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |