If you need to unpack artifacts in the generated 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>3.1.0</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>3.1.0</version>
<configuration>
<unpackTypes>rar,war,ejb</unpackTypes>
[...]
</configuration>
</plugin>
</plugins>
</build>