Hello,
sorry i didnt read properly ur email...
i m packaging my apps too as ear project..... and ejbs are packaged as jar
here's my pom.xml for ear

<modelVersion>4.0.0</modelVersion>
   <artifactId>${ear.name}</artifactId>
       <name>EAR project</name>
   <packaging>ear</packaging>

       <build>
       <plugins>
           <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-ear-plugin</artifactId>
               <configuration>
                   <modules>
                       <ejbModule>
                           <groupId>ExpenseControl</groupId>
                           <artifactId>ejbs</artifactId>
                           <bundleFileName>
                               ejb3-app-1.0-SNAPSHOT.jar
                           </bundleFileName>
                       </ejbModule>
                       <webModule>
                           <groupId>ExpenseControl</groupId>
                           <artifactId>web</artifactId>
                           <bundleFileName>
                               ejb3-web.war
                           </bundleFileName>
                       </webModule>
                     </modules>

<outputDirectory>${deploy.directory}</outputDirectory>

                    </configuration>
           </plugin>
       </plugins>
   </build>

   <dependencies>
        <dependency>
           <groupId>ExpenseControl</groupId>
       <artifactId>ejbs</artifactId>
       <version>1.0</version>
       <type>ejb</type>
      </dependency>
           <dependency>
           <groupId>ExpenseControl</groupId>
       <artifactId>web</artifactId>
       <version>1.0</version>
       <type>war</type>
      </dependency>
    </dependencies>


this is actually a jar project

<ejbModule>
                           <groupId>ExpenseControl</groupId>
                           <artifactId>ejbs</artifactId>
                           <bundleFileName>
                               ejb3-app-1.0-SNAPSHOT.jar
                           </bundleFileName>
 </ejbModule>


hth
marco

Reply via email to