|
ShrinkWrap Resolver Aggregator 1.1.0-alpha-2 | |||||||||
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 | |
---|---|
MavenDependencyResolver |
configureFrom(String path)
Configures Maven from a settings.xml file |
MavenDependencyResolver |
exclusion(String exclusion)
Adds an exclusion for current dependency. |
MavenDependencyResolver |
exclusions(Collection<String> exclusions)
Adds multiple exclusions for current dependency |
MavenDependencyResolver |
exclusions(String... exclusions)
Adds multiple exclusions for current dependency |
MavenDependencyResolver |
goOffline()
Disables touching remote repositories at all, rely on local repository only |
MavenDependencyResolver |
includeDependenciesFromPom(String path)
Resolves based upon dependencies declared in the POM at the specified path |
MavenDependencyResolver |
loadDependenciesFromPom(String path)
Deprecated. please use includeDependenciesFromPom(String) instead |
MavenDependencyResolver |
loadDependenciesFromPom(String path,
MavenResolutionFilter filter)
Deprecated. please use includeDependenciesFromPom(String) instead |
MavenDependencyResolver |
loadMetadataFromPom(String path)
Loads remote repositories for a POM file. |
MavenDependencyResolver |
loadReposFromPom(String path)
Deprecated. please use loadMetadataFromPom(String) instead |
MavenDependencyResolver |
optional(boolean optional)
Sets dependency as optional. |
MavenDependencyResolver |
scope(String scope)
Sets a scope of dependency |
MavenDependencyResolver |
useCentralRepo(boolean useCentral)
Sets the resolver to either consider (or not) Maven Central in resolution |
Methods inherited from interface org.jboss.shrinkwrap.resolver.api.DependencyBuilder |
---|
artifact, artifacts |
Methods inherited from interface org.jboss.shrinkwrap.resolver.api.DependencyResolver |
---|
resolveAs, resolveAs, resolveAsFiles, resolveAsFiles |
Method Detail |
---|
MavenDependencyResolver configureFrom(String path)
path
- A path to a settings.xml configuration file
MavenDependencyResolver loadMetadataFromPom(String path) throws ResolutionException
pathx
- A path to the POM file, must not be null
or empty
Exception
ResolutionException
@Deprecated MavenDependencyResolver loadReposFromPom(String path) throws ResolutionException
loadMetadataFromPom(String)
instead
path
- A path to the POM file, must not be null
or empty
Exception
ResolutionException
MavenDependencyResolver scope(String scope)
scope
- A scope, for example @{code compile}, @{code test} and others
MavenDependencyResolver optional(boolean optional)
optional
flag
optional
- Optional flag
MavenDependencyResolver exclusion(String exclusion)
exclusion
- the exclusion to be added to list of artifacts to be excluded, specified in the format
<groupId>:<artifactId>[:<extension>[:<classifier>]]
, an empty string or *
will match all
exclusions, you can pass an *
instead of any part of the coordinates to match all possible values
MavenDependencyResolver exclusions(String... exclusions)
exclusions
- the exclusions to be added to the list of artifacts to be excluded, specified in the format
<groupId>:<artifactId>[:<extension>[:<classifier>]]
, an empty string or *
will match all
exclusions, you can pass an *
instead of any part of the coordinates to match all possible values
MavenDependencyResolver exclusions(Collection<String> exclusions)
exclusions
- the exclusions to be added to the list of artifacts to be excluded, specified in the format
<groupId>:<artifactId>[:<extension>[:<classifier>]]
, an empty string or *
will match all
exclusions, you can pass an *
instead of any part of the coordinates to match all possible values
MavenDependencyResolver includeDependenciesFromPom(String path) throws ResolutionException
path
-
ResolutionException
@Deprecated MavenDependencyResolver loadDependenciesFromPom(String path) throws ResolutionException
includeDependenciesFromPom(String)
instead
path
-
ResolutionException
@Deprecated MavenDependencyResolver loadDependenciesFromPom(String path, MavenResolutionFilter filter) throws ResolutionException
includeDependenciesFromPom(String)
instead
path
- filter
-
ResolutionException
MavenDependencyResolver useCentralRepo(boolean useCentral)
useCentral
- a flag whether to use Maven central
MavenDependencyResolver goOffline()
|
ShrinkWrap Resolver Aggregator 1.1.0-alpha-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |