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 
=============================

Reply via email to