The ejb plugin has configuration elements for the application.xml. Please see: http://maven.apache.org/plugins/maven-ear-plugin/howto.html
Dário Luís Coneglian Oliveros wrote:
Hi, I´ve been trying to create an EAR that contains a JAR, an EJB JAR (depends on JAR) and a WAR, however only EJB JAR and WAR gets added to the application.xml as ejb and web modules respectively. The JAR is not added at all. This used to work in Maven 1. How can I have an entry of JAR in the application.xml as a java module ? Do I need to add it manually ? I´ve noticed that all dependency jars are added to the EAR (depending on the scope), but they are not present in the application.xml as java modules. Should I report a bug or this is an expected behaviour ? Please find below my POM: <project> <modelVersion>4.0.0</modelVersion> <groupId>com.mycompany.sample</groupId> <artifactId>sample-ear</artifactId> <packaging>ear</packaging> <version>1.0-SNAPSHOT</version> <dependencies> <dependency> <groupId>com.mycompany.sample</groupId> <artifactId>sample-java</artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId>com.mycompany.sample</groupId> <artifactId>sample-ejb</artifactId> <version>1.0-SNAPSHOT</version> <type>ejb</type> </dependency> <dependency> <groupId>com.mycompany.sample</groupId> <artifactId>sample-web</artifactId> <version>1.0-SNAPSHOT</version> <type>war</type> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ear-plugin</artifactId> </plugin> </plugins></build> </project>application.xml ---------------------- <application> <display-name>sample-ear</display-name> <module> <ejb>sample-ejb-1.0-SNAPSHOT.jar</ejb> </module> <module> <web> <web-uri>sample-web-1.0-SNAPSHOT.war</web-uri> <context-root>/sample-web</context-root> </web> </module> </application> Any clues ? I am not sure if that´s the right way to create an EAR. I would appreciate any help. Thanks in advance, Dário --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
