-
1. Re: jboss-deployment-structure.xml in EAR using Maven
di0nysus Sep 19, 2011 7:22 AM (in response to di0nysus)I figured it out myself. I moved the file to src/main/application and it was included in the EAR.
-
2. Re: jboss-deployment-structure.xml in EAR using Maven
gfernandez598 Sep 25, 2012 11:57 AM (in response to di0nysus)Just for record.
The default resource directory for an EAR is src/main/application, but this can be changed througth the earSourceDirectory property of the maven-ear-plugin like the next example.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<version>2.6</version>
<configuration>
<!-- Tell Maven we are using Java EE 6 -->
<version>6</version>
<!-- Use Java EE ear libraries as needed. Java EE ear libraries
are in easy way to package any libraries needed in the ear, and automatically
have any modules (EJB-JARs and WARs) use them -->
<defaultLibBundleDir>EarContent/lib</defaultLibBundleDir>
<earSourceDirectory>${basedir}/EarContent</earSourceDirectory>
....
</configuration>
</plugin>
Regards