You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ra...@jpmchase.com on 2005/11/23 18:55:31 UTC
Multi moduls Help
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
=============================
Re: Multi moduls Help
Posted by Allan Ramirez <ar...@exist.com>.
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
raghurajan.x.gurunathanv@jpmchase.com 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
>
>