Package io.quarkus.bom.decomposer.maven
Class FlattenPlatformBomMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.quarkus.bom.decomposer.maven.FlattenPlatformBomMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="flatten-platform-bom",
defaultPhase=INITIALIZE,
requiresDependencyCollection=NONE,
threadSafe=true)
public class FlattenPlatformBomMojo
extends org.apache.maven.plugin.AbstractMojo
This goal flattens the BOM, i.e. generates its effective content, and replaces the original POM
associated with the project with newly generated one.
By default, it sorts the dependency constraints alphabetically but it could be turned off.
The exception is Quarkus platform descriptor and property artifacts. They are moved to the top
of the dependency constraint list and their ordering is preserved (i.e. they are excluded from the
alphabetic ordering).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.maven.project.MavenProjectprotected booleanFields 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
-
project
@Parameter(defaultValue="${project}") protected org.apache.maven.project.MavenProject project -
skip
@Parameter(defaultValue="${skipPlatformBom}") protected boolean skip
-
-
Constructor Details
-
FlattenPlatformBomMojo
public FlattenPlatformBomMojo()
-
-
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
-