Class DependencyTreeMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.quarkus.maven.DependencyTreeMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="dependency-tree", defaultPhase=NONE, requiresDependencyResolution=NONE, threadSafe=true) public class DependencyTreeMojo extends org.apache.maven.plugin.AbstractMojo
Displays Quarkus application build dependency tree including the deployment ones.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) boolean
    Whether to append outputs into the output file or overwrite it.
    (package private) boolean
    INCUBATING option, enabled with -Dquarkus.bootstrap.incubating-model-resolver system or project property.
    (package private) String
    Target launch mode corresponding to LaunchMode for which the dependency tree should be built.
    (package private) File
    If specified, this parameter will cause the dependency tree to be written to the path specified, instead of writing to the console.
    protected org.apache.maven.project.MavenProject
     
    protected io.quarkus.bootstrap.resolver.maven.MavenArtifactResolver
     
    (package private) boolean
    Whether to log only the runtime dependencies of the Quarkus application
    protected org.apache.maven.execution.MavenSession
     
    (package private) boolean
    INCUBATING option, enabled with -Dquarkus.bootstrap.incubating-model-resolver system or project property.
     

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

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected io.quarkus.bootstrap.resolver.maven.MavenArtifactResolver
     

    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 Details

    • workspaceProvider

      @Component protected QuarkusWorkspaceProvider workspaceProvider
    • project

      @Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject project
    • session

      @Parameter(defaultValue="${session}", readonly=true) protected org.apache.maven.execution.MavenSession session
    • mode

      @Parameter(property="mode", defaultValue="prod") String mode
      Target launch mode corresponding to LaunchMode for which the dependency tree should be built. io.quarkus.runtime.LaunchMode.NORMAL is the default.
    • verbose

      @Parameter(property="verbose") boolean verbose
      INCUBATING option, enabled with -Dquarkus.bootstrap.incubating-model-resolver system or project property.

      Whether to log dependency properties, such as on which classpath they belong, whether they are hot-reloadable in dev mode, etc.

    • graph

      @Parameter(property="graph") boolean graph
      INCUBATING option, enabled with -Dquarkus.bootstrap.incubating-model-resolver system or project property.

      Whether to log all dependencies of each dependency node in a tree, adding [+] suffix to those whose dependencies are not expanded.

    • outputFile

      @Parameter(property="outputFile", required=false) File outputFile
      If specified, this parameter will cause the dependency tree to be written to the path specified, instead of writing to the console.
    • appendOutput

      @Parameter(property="appendOutput", required=false, defaultValue="false") boolean appendOutput
      Whether to append outputs into the output file or overwrite it.
    • runtimeOnly

      @Parameter(property="runtimeOnly") boolean runtimeOnly
      Whether to log only the runtime dependencies of the Quarkus application
    • resolver

      protected io.quarkus.bootstrap.resolver.maven.MavenArtifactResolver resolver
  • Constructor Details

    • DependencyTreeMojo

      public DependencyTreeMojo()
  • Method Details

    • 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
    • resolver

      protected io.quarkus.bootstrap.resolver.maven.MavenArtifactResolver resolver()