Class ListDependenciesMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="list-dependencies",
          defaultPhase=GENERATE_TEST_RESOURCES,
          requiresProject=true,
          threadSafe=true,
          requiresDependencyCollection=COMPILE_PLUS_RUNTIME)
    public class ListDependenciesMojo
    extends org.apache.maven.plugin.AbstractMojo
    Builds a .target file describing the dependencies for current project. It differs from maven-dependency-plugin:list in the fact that it does return location to bundles, and not to nested jars (in case bundle contain some).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.maven.project.MavenProject project  
      private boolean skip  
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      • 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
    • Field Detail

      • project

        @Parameter(property="project")
        private org.apache.maven.project.MavenProject project
      • skip

        @Parameter(property="skip")
        private boolean skip
    • Constructor Detail

      • ListDependenciesMojo

        public ListDependenciesMojo()
    • Method Detail

      • 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