Class RequireContributorRoles

  • All Implemented Interfaces:
    org.apache.maven.enforcer.rule.api.EnforcerRuleBase

    @Named("requireContributorRoles")
    public class RequireContributorRoles
    extends org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
    This rule verifies that certain contributor roles are filled.
    Since:
    1.0-alpha-3
    Author:
    Mirko Friedenhagen
    • Constructor Detail

      • RequireContributorRoles

        @Inject
        public RequireContributorRoles​(org.apache.maven.project.MavenProject project)
    • Method Detail

      • getRoleName

        protected final String getRoleName()
        Returns the rolename.
        Returns:
        rolename.
      • getRoles

        protected List<org.apache.maven.model.Contributor> getRoles​(org.apache.maven.project.MavenProject mavenProject)
        Returns the roles from the POM.
        Returns:
        the list of Contributors or Developers.
      • execute

        public void execute()
                     throws org.apache.maven.enforcer.rule.api.EnforcerRuleException
        Execute the rule.
        Specified by:
        execute in class org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
        Throws:
        org.apache.maven.enforcer.rule.api.EnforcerRuleException - the enforcer rule exception
      • setLog

        public void setLog​(org.apache.maven.enforcer.rule.api.EnforcerLogger arg0)
        Specified by:
        setLog in interface org.apache.maven.enforcer.rule.api.EnforcerRuleBase
      • getLog

        public org.apache.maven.enforcer.rule.api.EnforcerLogger getLog()