I think you have to make another sub project for EAR module that its
packaging is ear and make EJBs and Webapp as its dependencies.
EAR Module
+-- EJBs
| +-- pom.xml
+-- Webapp
| +-- pom.xml
+-- EAR
| +--pom.xml (with a packaging of ear)
+-- pom.xml|
regards,
-allan
[EMAIL PROTECTED] wrote:
Hi all
i Have Multi module as kuje
EAR Module
| - - - EJBs
| - - - pom.xml
| - - - Webapp
| - - - pom.xml
| - - pom.xml
So i have to construct a ear at the top which includes both ejb and webapp
modules.
so i included following in EAR Module pom.xml
- -- --
<modules>
<module>EJBs</module>
<module>Webapp</module>
</modules>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<executions>
<execution>
<configuration>
<addClasspath>true</addClasspath>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
- - - -
when i ran "mvn package" (from EAR module direcory) whats happening is,
it goes and create ejbs jar and webapp war but not the .ear as i expected
so can anyone please help with some example what do i need to do to
create ear file???
Thanks,
=============================
Raghurajan Gurunathan
=============================
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.5/177 - Release Date: 11/21/2005
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]