This is what I have in my pom.xml:

<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.tokuii.serverside.baseapp</groupId>
  <artifactId>bsp-ear</artifactId>
  <version>1.0-SNAPSHOT</version>
  <name>Baseapp - EAR</name>
  <url>http://www.tokuii.com</url>
  <packaging>ear</packaging>
  <parent>
    <groupId>com.tokuii.serverside</groupId>
    <artifactId>baseapp</artifactId>
    <version>1.0-SNAPSHOT</version>
  </parent>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-ear-plugin</artifactId>
        <configuration>
          <archive>
            <manifest>
              <addClasspath>true</addClasspath>
            </manifest>
          </archive>
          <generateApplicationXml>true</generateApplicationXml>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>com.tokuii.serverside.baseapp.presentation.flash</groupId>
      <artifactId>bsp-pl-fls-ejb</artifactId>
      <version>1.0-SNAPSHOT</version>
      <type>ejb</type>
    </dependency>
    <dependency>
      <groupId>com.tokuii.serverside.baseapp.presentation.flash</groupId>
      <artifactId>bsp-pl-fls-web</artifactId>
      <version>1.0-SNAPSHOT</version>
      <type>war</type>
    </dependency>
  </dependencies>
</project>

and maven 2 produce the ear accordingly.

Regards,
Edward Yakop

On 9/12/05, Adam Hardy <[EMAIL PROTECTED]> wrote:
> It seems I didn't send my reply, so if it arrives twice, my apologies.
> 
> garg-ejb is declared as ejb packaging.
> 
> No modules declarations at all appear in the application xml. This is
> what it has:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <application xmlns="http://java.sun.com/xml/ns/j2ee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"; version="1.4">
>    <display-name>garg-ear</display-name>
>    <description>Garg Application EAR Package with EJBs and
> Jars</description>
> </application>
> 
> Edward Yakop on 12/09/05 08:06, wrote:
> > what is garg-ejb packaging? an ejb packaging?
> >
> > regards,
> > Edward Yakop
> >
> > Note: By default, all dependency will not be generated inside
> > application.xml unless if it is either ejb-client, ejb or war.
> >
> > On 9/11/05, Adam Hardy <[EMAIL PROTECTED]> wrote:
> >
> >>I'm bootstrapping m2 from svn source and I cannot work out how to get
> >>maven-ear-plugin to enter the module list into the application.xml.
> >>
> >>My application.xml contains only the project description and that's it.
> >>
> >>I've looked in the source code and it seems that the
> >>GenerateApplicationXmlMojo is not getting any modules in its modules
> >>collection - but if you look at my pom below, you'll see that the
> >>modules are all set up there (and the .ear file looks good apart from
> >>this application.xml).
> >>
> >>Any help would be gladly received!
> >>
> >>Here's my pom.xml:
> >>
> >><?xml version="1.0" encoding="UTF-8"?>
> >><project xmlns="http://maven.apache.org/POM/4.0.0";
> >>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >>http://maven.apache.org/maven-v4_0_0.xsd";>
> >>   <modelVersion>4.0.0</modelVersion>
> >>   <groupId>org.garg</groupId>
> >>   <artifactId>garg-ear</artifactId>
> >>   <packaging>ear</packaging>
> >>   <version>1.0-SNAPSHOT</version>
> >>   <name>Garg EAR</name>
> >>   <description>Garg Application EAR Package with EJBs and
> >>Jars</description>
> >>   <url>http://www.garg.com</url>
> >>   <dependencies>
> >>     <dependency>
> >>       <groupId>org.garg</groupId>
> >>       <artifactId>garg-delegate</artifactId>
> >>       <version>1.0-SNAPSHOT</version>
> >>       <scope>compile</scope>
> >>     </dependency>
> >>     <dependency>
> >>       <groupId>org.garg</groupId>
> >>       <artifactId>garg-ejb</artifactId>
> >>       <version>1.0-SNAPSHOT</version>
> >>       <scope>compile</scope>
> >>     </dependency>
> >>   </dependencies>
> >>   <build>
> >>     <plugins>
> >>       <plugin>
> >>         <artifactId>maven-ear-plugin</artifactId>
> >>         <version>2.0-beta-1-SNAPSHOT</version>
> >>         <configuration>
> >>           <version>1.4</version>
> >>           <archive>
> >>             <manifest>
> >>               <addClasspath>true</addClasspath>
> >>             </manifest>
> >>           </archive>
> >>         </configuration>
> >>         <executions>
> >>           <execution>
> >>             <goals>
> >>               <goal>generate-application-xml</goal>
> >>               <goal>ear</goal>
> >>             </goals>
> >>           </execution>
> >>         </executions>
> >>       </plugin>
> >>     </plugins>
> >>   </build>
> >>   <modules>
> >>     <module>../garg-dto</module>
> >>     <module>../garg-subdto</module>
> >>     <module>../garg-remote</module>
> >>     <module>../garg-delegate</module>
> >>     <module>../garg-ejb</module>
> >>   </modules>
> >></project>
> >>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to