|
ShrinkWrap Resolver Maven Implementation 1.1.0-alpha-3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.shrinkwrap.resolver.impl.maven.MavenImpl
public class MavenImpl
Shortcut API implementation for Maven artifact builder which holds and construct dependencies and is able to resolve them into ShrinkWrap archives.
| Constructor Summary | |
|---|---|
MavenImpl()
Constructs new instance of MavenDependencies |
|
MavenImpl(MavenRepositorySystem system,
org.sonatype.aether.RepositorySystemSession session,
org.jboss.shrinkwrap.resolver.impl.maven.MavenDependencyResolverSettings settings,
Stack<MavenDependency> dependencies,
Set<MavenDependency> dependencyManagement)
|
|
| Method Summary | ||
|---|---|---|
MavenDependencyResolverShortcutAPI |
artifact(String coordinates)
Resolves dependency for dependency builder. |
|
MavenDependencyResolverShortcutAPI |
artifacts(String... coordinates)
Resolves dependencies for dependency builder. |
|
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. |
|
Stack<MavenDependency> |
getDependencies()
Gets all the dependencies marked by Resolver to be resolved |
|
Set<MavenDependency> |
getVersionManagement()
Gets all the dependencies retrieved from metadata parsing. |
|
|
resolveArtifactAs(Class<ARCHIVEVIEW> archiveView)
Resolves dependency for dependency builder. |
|
|
resolveArtifactsAs(Class<ARCHIVEVIEW> archiveView)
Resolves dependencies for dependency builder. |
|
Maven.MavenShortcutAPI |
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 MavenImpl()
public MavenImpl(MavenRepositorySystem system,
org.sonatype.aether.RepositorySystemSession session,
org.jboss.shrinkwrap.resolver.impl.maven.MavenDependencyResolverSettings settings,
Stack<MavenDependency> dependencies,
Set<MavenDependency> dependencyManagement)
| Method Detail |
|---|
public org.jboss.shrinkwrap.api.GenericArchive dependency(String coordinates)
throws ResolutionException
dependency in interface Maven.MavenShortcutAPIcoordinates - 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 Maven.MavenShortcutAPIcoordinates - 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 Maven.MavenShortcutAPI withPom(String path)
throws ResolutionException
path - A path to the POM file, must not be null or empty
ResolutionException - If artifact coordinates are wrong or if version cannot be determined.
public MavenDependencyResolverShortcutAPI artifact(String coordinates)
throws ResolutionException
coordinates - Coordinates specified to a created artifact, specified in an implementation-specific format.
ResolutionException - If artifact coordinates are wrong or if version cannot be determined.
public MavenDependencyResolverShortcutAPI artifacts(String... coordinates)
throws ResolutionException
coordinates - 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.
public <ARCHIVEVIEW extends org.jboss.shrinkwrap.api.Assignable> ARCHIVEVIEW resolveArtifactAs(Class<ARCHIVEVIEW> archiveView)
throws ResolutionException
archiveView - End-user view of the archive requested (ie. GenericArchive or JavaArchive)
ResolutionException - If artifact could not be resolved
{@link - IllegalArgumentException} If target archive view is not supplied
{@link - ResolutionException} If more than one artifact is resolved
public <ARCHIVEVIEW extends org.jboss.shrinkwrap.api.Assignable> Collection<ARCHIVEVIEW> resolveArtifactsAs(Class<ARCHIVEVIEW> archiveView)
throws ResolutionException
archiveView - End-user view of the archive requested (ie. GenericArchive or JavaArchive)
ResolutionException - If artifacts could not be resolved
{@link - IllegalArgumentException} If target archive view is not suppliedpublic Stack<MavenDependency> getDependencies()
public Set<MavenDependency> getVersionManagement()
MavenDependencyResolver version metadata
|
ShrinkWrap Resolver Maven Implementation 1.1.0-alpha-3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||