Package io.quarkus.maven
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
FieldsModifier and TypeFieldDescription(package private) booleanWhether to append outputs into the output file or overwrite it.(package private) booleanINCUBATING option, enabled with-Dquarkus.bootstrap.incubating-model-resolversystem or project property.(package private) StringTarget launch mode corresponding toLaunchModefor which the dependency tree should be built.(package private) FileIf 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.MavenProjectprotected io.quarkus.bootstrap.resolver.maven.MavenArtifactResolver(package private) booleanWhether to log only the runtime dependencies of the Quarkus applicationprotected org.apache.maven.execution.MavenSession(package private) booleanINCUBATING option, enabled with-Dquarkus.bootstrap.incubating-model-resolversystem or project property.protected QuarkusWorkspaceProviderFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
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
Target launch mode corresponding toLaunchModefor which the dependency tree should be built.io.quarkus.runtime.LaunchMode.NORMALis the default. -
verbose
@Parameter(property="verbose") boolean verboseINCUBATING option, enabled with-Dquarkus.bootstrap.incubating-model-resolversystem 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 graphINCUBATING option, enabled with-Dquarkus.bootstrap.incubating-model-resolversystem 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
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 appendOutputWhether to append outputs into the output file or overwrite it. -
runtimeOnly
@Parameter(property="runtimeOnly") boolean runtimeOnlyWhether 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.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
resolver
protected io.quarkus.bootstrap.resolver.maven.MavenArtifactResolver resolver()
-