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

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    setArtifact(String artifact)
    A string of the form groupId:artifactId:version[:packaging[:classifier]].
    void
    setArtifactId(String artifactId)
    The artifact ID of the artifact to download.
    void
    setClassifier(String classifier)
    The classifier of the artifact to download.
    void
    setGroupId(String groupId)
    The group ID of the artifact to download.
    void
    setPackaging(String packaging)
    The packaging of the artifact to download.
    void
    setVersion(String version)
    The version of the artifact to download.

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ListClassesMojo

      public ListClassesMojo()
  • Method Details

    • setGroupId

      @Parameter(property="groupId") public void setGroupId(String groupId)
      The group ID of the artifact to download. Ignored if artifact is used.
      Since:
      3.1.3
    • setArtifactId

      @Parameter(property="artifactId") public void setArtifactId(String artifactId)
      The artifact ID of the artifact to download. Ignored if artifact is used.
      Since:
      3.1.3
    • setVersion

      @Parameter(property="version") public void setVersion(String version)
      The version of the artifact to download. Ignored if artifact is used.
      Since:
      3.1.3
    • setClassifier

      @Parameter(property="classifier") public void setClassifier(String classifier)
      The classifier of the artifact to download. Ignored if artifact is used.
      Since:
      3.1.3
    • setPackaging

      @Parameter(property="packaging", defaultValue="jar") public void setPackaging(String packaging)
      The packaging of the artifact to download. Ignored if artifact is used.
      Since:
      3.1.3
    • setArtifact

      @Parameter(property="artifact") public void setArtifact(String artifact)
      A string of the form groupId: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.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException