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 java.lang.Object implements org.apache.maven.enforcer.rule.api.EnforcerRuleChecks if a POM complies with the rules for uploading to Maven Central.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description CheckMavenCentral()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper)java.lang.StringgetCacheId()booleanisCacheable()booleanisResultValid(org.apache.maven.enforcer.rule.api.EnforcerRule enforcerRule)
-
-
-
Method Detail
-
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
public boolean isResultValid(@Nonnull org.apache.maven.enforcer.rule.api.EnforcerRule enforcerRule)- Specified by:
isResultValidin interfaceorg.apache.maven.enforcer.rule.api.EnforcerRule
-
getCacheId
@Nullable public java.lang.String getCacheId()
- Specified by:
getCacheIdin interfaceorg.apache.maven.enforcer.rule.api.EnforcerRule
-
-