|
ShrinkWrap Resolver Maven Implementation 2.0.0-alpha-1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.shrinkwrap.resolver.impl.maven.MavenDependencyShortcutImpl
public class MavenDependencyShortcutImpl
Shortcut API implementation for Maven artifact builder which holds and construct dependencies and is able to resolve them into ShrinkWrap archives.
| Constructor Summary | |
|---|---|
MavenDependencyShortcutImpl()
|
|
| Method Summary | |
|---|---|
Collection<org.jboss.shrinkwrap.api.GenericArchive> |
dependencies(String... coordinates)
Resolves dependencies for dependency builder. |
org.jboss.shrinkwrap.api.GenericArchive |
dependency(String coordinates)
Resolves dependency for dependency builder. |
File |
resolveAsFile(String coordinates)
Resolves dependency for dependency builder. |
File[] |
resolveAsFiles(String... coordinates)
Resolves dependencies for dependency builder. |
EffectivePomMavenDependencyShortcut |
withPom(String path)
Loads remote repositories for a POM file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MavenDependencyShortcutImpl()
| Method Detail |
|---|
public org.jboss.shrinkwrap.api.GenericArchive dependency(String coordinates)
throws ResolutionException
dependency in interface EffectivePomMavenDependencyShortcutcoordinates - Coordinates specified to a created artifact, specified in an implementation-specific format.
ResolutionException - If artifact coordinates are wrong or if version cannot be determined.
{@link - IllegalArgumentException} If target archive view is not supplied
public Collection<org.jboss.shrinkwrap.api.GenericArchive> dependencies(String... coordinates)
throws ResolutionException
dependencies in interface EffectivePomMavenDependencyShortcutcoordinates - A list of coordinates specified to the created artifacts, specified in an implementation-specific
format.
ResolutionException - If artifact coordinates are wrong or if version cannot be determined.
{@link - IllegalArgumentException} If target archive view is not supplied
public File resolveAsFile(String coordinates)
throws ResolutionException
resolveAsFile in interface EffectivePomMavenDependencyShortcutcoordinates - Coordinates specified to a created artifact, specified in an implementation-specific format.
ResolutionException - If artifact could not be resolved
public File[] resolveAsFiles(String... coordinates)
throws ResolutionException
resolveAsFiles in interface EffectivePomMavenDependencyShortcutcoordinates - A list of coordinates specified to the created artifacts, specified in an implementation-specific
format.
ResolutionException - If artifact could not be resolved
public EffectivePomMavenDependencyShortcut withPom(String path)
throws ResolutionException
withPom in interface MavenDependencyShortcutpath - A path to the POM file, must not be null or empty
ResolutionException - If artifact coordinates are wrong or if version cannot be determined.
|
ShrinkWrap Resolver Maven Implementation 2.0.0-alpha-1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||