Class CheckMavenCentral
java.lang.Object
org.kordamp.maven.enforcer.checker.CheckMavenCentral
- All Implemented Interfaces:
org.apache.maven.enforcer.rule.api.EnforcerRule
public class CheckMavenCentral
extends Object
implements org.apache.maven.enforcer.rule.api.EnforcerRule
Checks if a POM complies with the rules for uploading to Maven Central.
- Since:
- 1.0.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper) booleanbooleanisResultValid(org.apache.maven.enforcer.rule.api.EnforcerRule enforcerRule)
-
Field Details
-
release
private boolean release -
strict
private boolean strict
-
-
Constructor Details
-
CheckMavenCentral
public CheckMavenCentral()
-
-
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:
executein interfaceorg.apache.maven.enforcer.rule.api.EnforcerRule- Throws:
org.apache.maven.enforcer.rule.api.EnforcerRuleException
-
isCacheable
public boolean isCacheable()- Specified by:
isCacheablein interfaceorg.apache.maven.enforcer.rule.api.EnforcerRule
-
isResultValid
- Specified by:
isResultValidin interfaceorg.apache.maven.enforcer.rule.api.EnforcerRule
-
getCacheId
- Specified by:
getCacheIdin interfaceorg.apache.maven.enforcer.rule.api.EnforcerRule
-