Fork me on GitHub

Require Developer Roles

This rule checks that certain roles in a project are represented by developers.

Say you want to enforce a policy that in every project there is at least one developer representing a specific role, e.g. at least one developer has the role "lead engineer".

The following parameters are supported by this rule:

  • requiredRoles - Comma separated list of roles which must be represented by at least one developer.
  • validRoles - Comma separated list of roles which are additionally allowed. requiredRoles are always valid, so the union of requiredRoles and validRoles forms the set of all accepted roles. By default it has the value *, which means every role is accepted. This rule does not support Ant-patterns.

Sample Plugin Configuration:

        <version>3.4.1</version> <!-- find the latest version at -->
                  <requiredRoles>lead engineer</requiredRoles>
                  <validRoles>java developer</validRoles>


Apache, Apache Maven, Maven and the Apache feather logo are trademarks of The Apache Software Foundation.