Class 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 Detail

      • project

        @Parameter(defaultValue="${project}")
        protected org.apache.maven.project.MavenProject project
      • skip

        @Parameter(defaultValue="${skipPlatformBom}")
        protected boolean skip
    • Constructor Detail

      • FlattenPlatformBomMojo

        public FlattenPlatformBomMojo()
    • Method Detail

      • 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