For all of you Mausers, I thought I would go through an important note about a packaging order. Includes in maven 3 to pack .ear files. In your pom.xml, to compile the .ear file, you will have something similar to:
<build>
<plugins>
<plugin>
<artifactId>maven-ear-plugin</artifactId>
<version>2.8</version>
<configuration>
<packagingExcludes>
db2jcc**.jar,
db2jcc_license_cu**,
osgi-3.6.1.jar,
...
</build>
It is important that the tag <packagingExcludes>be the first element after the tag <configuration>. Otherwise, maven silently ignores it. This is for all of you who wondered why servlet-3.0 is still displayed in your .ear file.
source
share