Class ListClassesMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.dependency.ListClassesMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="list-classes",
requiresProject=false,
threadSafe=true)
public class ListClassesMojo
extends org.apache.maven.plugin.AbstractMojo
Retrieves and lists all classes contained in the specified artifact from the specified remote repositories.
- Since:
- 3.1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ParamArtifactRepositories in the formatid::[layout::]urlor just URLs.private ResolverUtilprivate booleanSkip plugin execution completely.private booleanDownload transitively, retrieving the specified artifact and all of its dependencies.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()private voidvoidsetArtifact(String artifact) A string of the formgroupId:artifactId:version[:packaging[:classifier]].voidsetArtifactId(String artifactId) The artifact ID of the artifact to download.voidsetClassifier(String classifier) The classifier of the artifact to download.voidsetGroupId(String groupId) The group ID of the artifact to download.voidsetPackaging(String packaging) The packaging of the artifact to download.voidsetVersion(String version) The version of the artifact to download.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
resolverUtil
-
paramArtifact
-
remoteRepositories
Repositories in the formatid::[layout::]urlor just URLs. That is,central::default::https://repo.maven.apache.org/maven2,myrepo::https://repo.acme.com,https://repo.acme2.com- Since:
- 3.1.3
-
transitive
@Parameter(property="transitive", defaultValue="false") private boolean transitiveDownload transitively, retrieving the specified artifact and all of its dependencies.- Since:
- 3.1.3
-
skip
@Parameter(property="mdep.skip", defaultValue="false") private boolean skipSkip plugin execution completely.- Since:
- 3.6.0
-
-
Constructor Details
-
ListClassesMojo
public ListClassesMojo()
-
-
Method Details
-
setGroupId
The group ID of the artifact to download. Ignored ifartifactis used.- Since:
- 3.1.3
-
setArtifactId
The artifact ID of the artifact to download. Ignored ifartifactis used.- Since:
- 3.1.3
-
setVersion
The version of the artifact to download. Ignored ifartifactis used.- Since:
- 3.1.3
-
setClassifier
The classifier of the artifact to download. Ignored ifartifactis used.- Since:
- 3.1.3
-
setPackaging
The packaging of the artifact to download. Ignored ifartifactis used.- Since:
- 3.1.3
-
setArtifact
A string of the formgroupId:artifactId:version[:packaging[:classifier]].- Since:
- 3.1.3
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
printClassesFromArtifactResult
- Throws:
IOException
-