Class 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.EnforcerRule
    Checks if a POM complies with the rules for uploading to Maven Central.
    Since:
    1.0.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean release  
      private boolean strict  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper)  
      java.lang.String getCacheId()  
      boolean isCacheable()  
      boolean isResultValid​(org.apache.maven.enforcer.rule.api.EnforcerRule enforcerRule)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • release

        private boolean release
      • strict

        private boolean strict
    • Constructor Detail

      • CheckMavenCentral

        public CheckMavenCentral()
    • 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:
        execute in interface org.apache.maven.enforcer.rule.api.EnforcerRule
        Throws:
        org.apache.maven.enforcer.rule.api.EnforcerRuleException
      • isCacheable

        public boolean isCacheable()
        Specified by:
        isCacheable in interface org.apache.maven.enforcer.rule.api.EnforcerRule
      • isResultValid

        public boolean isResultValid​(@Nonnull
                                     org.apache.maven.enforcer.rule.api.EnforcerRule enforcerRule)
        Specified by:
        isResultValid in interface org.apache.maven.enforcer.rule.api.EnforcerRule
      • getCacheId

        @Nullable
        public java.lang.String getCacheId()
        Specified by:
        getCacheId in interface org.apache.maven.enforcer.rule.api.EnforcerRule