Class CheckBom
java.lang.Object
org.kordamp.maven.enforcer.checker.CheckBom
- All Implemented Interfaces:
org.apache.maven.enforcer.rule.api.EnforcerRule
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper) boolean
boolean
isResultValid
(org.apache.maven.enforcer.rule.api.EnforcerRule enforcerRule)
-
Constructor Details
-
CheckBom
public CheckBom()
-
-
Method Details
-
execute
public void execute(@Nonnull org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper) throws org.apache.maven.enforcer.rule.api.EnforcerRuleException - Specified by:
execute
in interfaceorg.apache.maven.enforcer.rule.api.EnforcerRule
- Throws:
org.apache.maven.enforcer.rule.api.EnforcerRuleException
-
isCacheable
public boolean isCacheable()- Specified by:
isCacheable
in interfaceorg.apache.maven.enforcer.rule.api.EnforcerRule
-
isResultValid
- Specified by:
isResultValid
in interfaceorg.apache.maven.enforcer.rule.api.EnforcerRule
-
getCacheId
- Specified by:
getCacheId
in interfaceorg.apache.maven.enforcer.rule.api.EnforcerRule
-