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

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.maven.project.MavenProject
     
    protected boolean
     

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

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    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

    • 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.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException