Class CheckBomMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.kordamp.maven.plugin.checker.mojos.CheckBomMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="check-bom") public class CheckBomMojo extends org.apache.maven.plugin.AbstractMojo
Checks if a POM file is a minimal BOM file. Minimal BOM files contain the following elements:
  • <groupId>
  • <artifactId>
  • <version>
  • <dependencyManagement>
Since:
1.0.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private org.apache.maven.project.MavenProject
    The project whose model will be checked.

    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}", readonly=true, required=true) private org.apache.maven.project.MavenProject project
      The project whose model will be checked.
  • Constructor Details

    • CheckBomMojo

      public CheckBomMojo()
  • 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