org.jboss.shrinkwrap.resolver.api.maven
Interface MavenDependencyShortcut
- All Superinterfaces:
- EffectivePomMavenDependencyShortcut, ResolverEntryPoint<MavenDependencyShortcut>
public interface MavenDependencyShortcut
- extends ResolverEntryPoint<MavenDependencyShortcut>, EffectivePomMavenDependencyShortcut
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.
- Author:
- Samuel Santos
withPom
EffectivePomMavenDependencyShortcut withPom(String path)
- Loads remote repositories for a POM file. If repositories are defined in the parent of the POM file and there are
accessible via local file system, they are set as well.
These remote repositories are used to resolve the artifacts during dependency resolution.
Additionally, it loads dependencies defined in the POM file model in an internal cache, which can be later used to
resolve an artifact without explicitly specifying its version.
- Parameters:
path
- A path to the POM file, must not be null
or empty
- Returns:
- A dependency builder with remote repositories set according to the content of POM file.
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.