Class CheckBom
- java.lang.Object
-
- org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
-
- org.kordamp.maven.enforcer.checker.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
-
-
Constructor Summary
Constructors Constructor Description CheckBom()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
org.apache.maven.enforcer.rule.api.EnforcerLogger
getLog()
boolean
isFailOnError()
CheckBom
setFailOnError(boolean failOnError)
void
setLog(org.apache.maven.enforcer.rule.api.EnforcerLogger arg0)
-
-
-
Constructor Detail
-
CheckBom
public CheckBom()
-
-
Method Detail
-
isFailOnError
public boolean isFailOnError()
-
setFailOnError
public CheckBom setFailOnError(boolean failOnError)
-
execute
public void execute() throws org.apache.maven.enforcer.rule.api.EnforcerRuleException
- Specified by:
execute
in classorg.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 interfaceorg.apache.maven.enforcer.rule.api.EnforcerRuleBase
-
getLog
public org.apache.maven.enforcer.rule.api.EnforcerLogger getLog()
-
-