Have problems with this myself.
I get on module added. My pom.xml:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<configuration>
<modules>
<javaModule>
<groupId>com.mycompany.Test</groupId>
<artifactId>test-ejb</artifactId>
</javaModule>
<webModule>
<groupId>com.mycompany.app</groupId>
<artifactId>my-webapp</artifactId>
<contextRoot>/</contextRoot>
</webModule>
</modules>
</configuration>
</plugin>
</plugins>
</build>
---------------------------------------
using> mvn ear:ear
creates only on entry for the webmodul in application.xml
I had to manually add the other modul in
this/target/META-INF/application.xml
<module>
<ejb>test-ejb-1.0.1.jar</ejb>
</module>
next run with ear:ear do not create a new applicatin.xml
so luckily I get it packed im my ear.
Stein
[EMAIL PROTECTED] writes:
Hi All,
How to dynamically add a new module in application.xml using maven.
Regards
Saravana
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]