I don't think maven-ear-plugin
specific to JBoss. But you must specify JavaEE <version>6</version>
in your configuration:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ear-plugin</artifactId> <version>2.6</version> <configuration> <version>6</version> <defaultLibBundleDir>lib</defaultLibBundleDir> <modules> <webModule> <groupId>my.group</groupId> <artifactId>my-web</artifactId> <contextRoot>/my</contextRoot> </webModule> </modules> </configuration>
To get a working JBoss7 EAR example, you can create a new project using the following archetype: org.jboss.spec.archetypes:jboss-javaee6-ear-webapp:7.0.2.CR1
example shown above is taken from this archetype.
source share