Class CheckMavenCentral
- java.lang.Object
-
- org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
-
- org.kordamp.maven.enforcer.checker.CheckMavenCentral
-
- All Implemented Interfaces:
org.apache.maven.enforcer.rule.api.EnforcerRuleBase
@Named("checkMavenCentral") public class CheckMavenCentral extends org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
Checks if a POM complies with the rules for uploading to Maven Central.- Since:
- 1.0.0
- Author:
- Andres Almiray
-
-
Constructor Summary
Constructors Constructor Description CheckMavenCentral()
-
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()
boolean
isFailOnWarning()
boolean
isRelease()
boolean
isStrict()
CheckMavenCentral
setFailOnError(boolean failOnError)
CheckMavenCentral
setFailOnWarning(boolean failOnWarning)
void
setLog(org.apache.maven.enforcer.rule.api.EnforcerLogger arg0)
CheckMavenCentral
setRelease(boolean release)
CheckMavenCentral
setStrict(boolean strict)
-
-
-
Constructor Detail
-
CheckMavenCentral
public CheckMavenCentral()
-
-
Method Detail
-
isRelease
public boolean isRelease()
-
setRelease
public CheckMavenCentral setRelease(boolean release)
-
isStrict
public boolean isStrict()
-
setStrict
public CheckMavenCentral setStrict(boolean strict)
-
isFailOnError
public boolean isFailOnError()
-
setFailOnError
public CheckMavenCentral setFailOnError(boolean failOnError)
-
isFailOnWarning
public boolean isFailOnWarning()
-
setFailOnWarning
public CheckMavenCentral setFailOnWarning(boolean failOnWarning)
-
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()
-
-