为生成的 application.xml 指定安全角色
可以按如下方式指定安全角色
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ear-plugin</artifactId> <version>3.2.0</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>