Package io.quarkus.maven
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
FieldsModifier and TypeFieldDescription(package private) booleanWhether to append outputs into the output file or overwrite it.(package private) StringComma-separated list of dependency flag names fromDependencyFlagsindicating which dependencies should be listed.(package private) StringTarget launch mode corresponding toLaunchModefor which the dependencies should be listed.(package private) FileIf 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) booleanWhether to include dependency scope and flag names in the output for each dependency.(package private) 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) 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
Target launch mode corresponding toLaunchModefor which the dependencies should be listed.io.quarkus.runtime.LaunchMode.NORMALis the default. -
flags
Comma-separated list of dependency flag names fromDependencyFlagsindicating 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(orruntime-cp),DEPLOYMENT_CP(ordeployment-cp),RUNTIME_EXTENSION_ARTIFACT(orruntime-extension-artifact),WORKSPACE_MODULE(orworkspace-module),RELOADABLE,TOP_LEVEL_RUNTIME_EXTENSION_ARTIFACT(ortop-level-runtime-extension-artifact),CLASSLOADER_PARENT_FIRST(orclassloader-parent-first),CLASSLOADER_RUNNER_PARENT_FIRST(orclassloader-runner-parent-first),CLASSLOADER_LESSER_PRIORITY(orclassloader-lesser-priority),COMPILE_ONLY(orcompile-only).If not specified, all dependencies returned by
ApplicationModel.getDependencies()are listed. -
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 appendOutputWhether to append outputs into the output file or overwrite it. -
verbose
@Parameter(property="verbose") boolean verboseWhether 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.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
resolver
protected io.quarkus.bootstrap.resolver.maven.MavenArtifactResolver resolver()
-