If you need to unpack artifacts in the generted EAR, you can configure it in two ways:
Note that artifacts are unpacked according to their respective URI.
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ear-plugin</artifactId> <version>2.4.2</version> <configuration> <modules> <sarModule> <groupId>artifactGroupId</groupId> <artifactId>artifactId</artifactId> <unpack>true</unpack> </sarModule> </modules> </configuration> </plugin> </plugins> </build>
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ear-plugin</artifactId> <version>2.4.2</version> <configuration> <unpackTypes>rar,war,ejb</unpackTypes> [...] </configuration> </plugin> </plugins> </build>