Class ResolveArtifactMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.resolver.examples.maven.ResolveArtifactMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="resolve-artifact", threadSafe=true) public class ResolveArtifactMojo extends org.apache.maven.plugin.AbstractMojoResolves a single artifact (not including its transitive dependencies).
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringartifactCoordsThe<groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>of the artifact to resolve.private static org.slf4j.LoggerLOGGERprivate java.util.List<RemoteRepository>remoteReposThe project's remote repositories to use for the resolution.private RepositorySystemSessionrepoSessionThe current repository/network configuration of Maven.private RepositorySystemrepoSystemThe entry point to Maven Artifact Resolver, i.e.
-
Constructor Summary
Constructors Constructor Description ResolveArtifactMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()The actual execution of the mojo.
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
repoSystem
@Component private RepositorySystem repoSystem
The entry point to Maven Artifact Resolver, i.e. the component doing all the work.
-
repoSession
@Parameter(defaultValue="${repositorySystemSession}", readonly=true) private RepositorySystemSession repoSessionThe current repository/network configuration of Maven.
-
remoteRepos
@Parameter(defaultValue="${project.remoteProjectRepositories}", readonly=true) private java.util.List<RemoteRepository> remoteReposThe project's remote repositories to use for the resolution.
-
artifactCoords
@Parameter(property="resolver.artifactCoords", readonly=true) private java.lang.String artifactCoordsThe<groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>of the artifact to resolve.
-
-