Class DependencyListMojo

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

@Mojo(name="dependency-list", defaultPhase=NONE, requiresDependencyResolution=NONE, threadSafe=true) public class DependencyListMojo extends org.apache.maven.plugin.AbstractMojo
Lists dependencies of a Quarkus application as resolved by the Quarkus bootstrap dependency resolver.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) boolean
    Whether to append outputs into the output file or overwrite it.
    (package private) String
    Comma-separated list of dependency flag names from DependencyFlags indicating which dependencies should be listed.
    (package private) String
    Target launch mode corresponding to LaunchMode for which the dependencies should be listed.
    (package private) File
    If specified, this parameter will cause the dependency list to be written to the path specified, instead of writing to the console.
    (package private) org.apache.maven.project.MavenProject
     
    (package private) List<org.eclipse.aether.repository.RemoteRepository>
     
    protected io.quarkus.bootstrap.resolver.maven.MavenArtifactResolver
     
    (package private) org.apache.maven.execution.MavenSession
     
    (package private) boolean
    Whether to include dependency scope and flag names in the output for each dependency.
    (package private) QuarkusWorkspaceProvider
     

    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

      @Inject QuarkusWorkspaceProvider workspaceProvider
    • project

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

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

      @Parameter(defaultValue="${project.remoteProjectRepositories}", readonly=true, required=true) List<org.eclipse.aether.repository.RemoteRepository> repos
    • mode

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

      @Parameter(property="flags") String flags
      Comma-separated list of dependency flag names from DependencyFlags indicating which dependencies should be listed. Only dependencies that have all the specified flags set will be included.

      Accepted flag names (case-insensitive, both constant names and text names are supported): OPTIONAL, DIRECT, RUNTIME_CP (or runtime-cp), DEPLOYMENT_CP (or deployment-cp), RUNTIME_EXTENSION_ARTIFACT (or runtime-extension-artifact), WORKSPACE_MODULE (or workspace-module), RELOADABLE, TOP_LEVEL_RUNTIME_EXTENSION_ARTIFACT (or top-level-runtime-extension-artifact), CLASSLOADER_PARENT_FIRST (or classloader-parent-first), CLASSLOADER_RUNNER_PARENT_FIRST (or classloader-runner-parent-first), CLASSLOADER_LESSER_PRIORITY (or classloader-lesser-priority), COMPILE_ONLY (or compile-only).

      If not specified, all dependencies returned by ApplicationModel.getDependencies() are listed.

    • outputFile

      @Parameter(property="outputFile", required=false) File outputFile
      If specified, this parameter will cause the dependency list 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.
    • verbose

      @Parameter(property="verbose") boolean verbose
      Whether to include dependency scope and flag names in the output for each dependency.
    • resolver

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

    • DependencyListMojo

      public DependencyListMojo()
  • 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()