Class CheckBom

  • All Implemented Interfaces:
    org.apache.maven.enforcer.rule.api.EnforcerRuleBase

    @Named("checkBom")
    public class CheckBom
    extends org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
    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
    Author:
    Andres Almiray
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.enforcer.rule.api.EnforcerRuleException
        Specified by:
        execute in class org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
        Throws:
        org.apache.maven.enforcer.rule.api.EnforcerRuleException
      • setLog

        public void setLog​(org.apache.maven.enforcer.rule.api.EnforcerLogger arg0)
        Specified by:
        setLog in interface org.apache.maven.enforcer.rule.api.EnforcerRuleBase
      • getLog

        public org.apache.maven.enforcer.rule.api.EnforcerLogger getLog()