Class RequireProjectUrl

java.lang.Object
org.apache.maven.plugins.enforcer.AbstractMojoHausEnforcerRule
org.apache.maven.plugins.enforcer.RequireProjectUrl
All Implemented Interfaces:
org.apache.maven.enforcer.rule.api.EnforcerRule, org.apache.maven.enforcer.rule.api.EnforcerRule2

public class RequireProjectUrl extends AbstractMojoHausEnforcerRule
This rule enforces the presence of an URL and optionally matches the URL against a regex
Since:
1.0-beta-4
  • Field Details

    • regex

      private String regex
      The regex that the url must match. Default is a non-empty URL
  • Constructor Details

    • RequireProjectUrl

      public RequireProjectUrl()
  • Method Details

    • execute

      public void execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper) throws org.apache.maven.enforcer.rule.api.EnforcerRuleException
      Throws:
      org.apache.maven.enforcer.rule.api.EnforcerRuleException
    • isCacheable

      public boolean isCacheable()
    • isResultValid

      public boolean isResultValid(org.apache.maven.enforcer.rule.api.EnforcerRule enforcerRule)
    • getCacheId

      public String getCacheId()