Specifying Security Roles For The Generated application.xml

Security roles might be specified as follows

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-ear-plugin</artifactId>
        <version>2.4.2</version>
        <configuration>
           [...]
           <security>
            <security-role id="SecurityRole_1234">
              <role-name>manager</role-name>
            </security-role>
            <security-role id="SecurityRole_5678">
              <description>My cool description</description>
              <role-name id="RoleName_12">teller</role-name>
            </security-role>
          </security>
        </configuration>
      </plugin>
    </plugins>
  </build>