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]

Reply via email to