jira-importer commented on issue #246:
URL: 
https://github.com/apache/maven-ear-plugin/issues/246#issuecomment-2955270888

   **[Martin 
Schuster](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=douglas)**
 commented
   
   Barrie,  not sure if the apache documentation helped you.  It didn't 
completely help me.  I still had to google and play around a bit.   I was 
thinking initially that I needed the resourceDir and couldn't understand why it 
was being deprecated.  But the earSourceDirectory and earSourceIncludes worked 
for me.  My need was to be able to integrate the use of maven while still using 
myeclipseide for J2EE ear projects.  Here is the build section from my ear 
pom.xml.
   
   \<build>
   \<plugins>
   \<plugin>
   \<artifactId>maven-ear-plugin\</artifactId>
   \<configuration>
   \<earSourceDirectory>${basedir}\</earSourceDirectory>
   \<earSourceIncludes>configuration/**,META-INF/**\</earSourceIncludes>
   \<archive>
   \<manifest>
   \<addClasspath>true\</addClasspath>
   \</manifest>
   \</archive>
   \<generateApplicationXml>false\</generateApplicationXml>
   \<applicationXML>${basedir}/META-INF/application.xml\</applicationXML>
   \<modules>
   \<webModule>
   \<groupId>one.two.three\</groupId>
   \<artifactId>onetwothree-web\</artifactId>
   \<contextRoot>/onetwothree\</contextRoot>
   \</webModule>
   \</modules>
   \<jboss>
   \<version>4\</version>
   \<unauthenticated-principal>guest\</unauthenticated-principal>
   \<security-domain>java:/jaas/onetwothree\</security-domain>
   \<loader-repository>lmlogisticsservices.com:loader=scp-app.ear 
   \</jboss>
   \</configuration>
   \</plugin>
   \</plugins>
   \</build>
   
   The parts that I messed around with were
   \<earSourceDirectory>${basedir}\</earSourceDirectory>
   \<earSourceIncludes>configuration/**,META-INF/**\</earSourceIncludes>
   
   Because I let MyEclipse manage the META-INF/application.xml and I keep 
property files in a configuration directory.  When I did this my mvn package 
result was this
   
   onetwothree-app-1.0.1-SNAPSHOT/configuration
   onetwothree-app-1.0.1-SNAPSHOT/configuration/propfileone.properties
   onetwothree-app-1.0.1-SNAPSHOT/configuration/propfiletwo.properties
   onetwothree-app-1.0.1-SNAPSHOT/configuration/propfilethree.properties
   onetwothree-app-1.0.1-SNAPSHOT/META-INF/application.xml
   onetwothree-app-1.0.1-SNAPSHOT/META-INF/jboss-app.xml
   onetwothree-app-1.0.1-SNAPSHOT/META-INF/MANIFEST.MF
   onetwothree-app-1.0.1-SNAPSHOT/onetwothree-web-1.0.1-SNAPSHOT.war
   
   Thus ends my trail of frustration.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to