Hi,

Check also the Project Reports > Plugin documentation page [1].
Application.xml generation is enabled by default.

Regarding Tom's original problem, there must be another file sitting in the
source tree. In no way the EAR plugin will generate a 1.3 and a
1.4versions. Please check the ${basedir}/src/main/application
directory.

If your problem is reproductible, create a Jira issue and attach your
project to it.

HTH,

Stéphane


[1] http://maven.apache.org/plugins/maven-ear-plugin/plugin-info.html

On 4/27/06, Gunzenreiner Simon <[EMAIL PROTECTED]> wrote:

Hi,

Don't know whether it will help, but apparently you have to set
                                        <generateApplicationXml>
                                                true
                                        </generateApplicationXml>
. My ear plugin config looks like this (I don't think you need the module
section except for java client modules).

                        <plugin>
                                <groupId>org.apache.maven.plugins
</groupId>
                                <artifactId>maven-ear-plugin</artifactId>
                                <configuration>

                                        
<earSourceDirectory>EarContent</earSourceDirectory>
                                        <generateApplicationXml>
                                                true
                                        </generateApplicationXml>
                                        <version>1.4</version>
                                        <modules>
                                                <javaModule>
                                                        <groupId>
winterthur.jackpot.sample</groupId>

                                                        
<artifactId>sample-ejb-client</artifactId>
                                                </javaModule>
                                        </modules>
                                </configuration>
                        </plugin>


Good luck,
Simon



-----Ursprüngliche Nachricht-----
Von: Tom Cunningham [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 27. April 2006 15:44
An: [email protected]
Betreff: Problem with maven-ear-plugin?


Hi,

I'm trying to build an ear in Maven 2 with the maven-ear-plugin.    The
problem I'm seeing is that the plugin is generating two different
application.xml's and the one that gets stuck into the ear doesn't seem
correct.    The one that gets stuck into the ear doesn't give any entries
for the ejbModules I have defined.

My project has three dependencies and each should be a module in the
application.xml.    Here's what I have defined in my pom.xml :
<dependencies>
    <dependency>
      <groupId>vfa</groupId>
      <artifactId>facility-war</artifactId>
      <version>8.0</version>
      <type>war</type>
    </dependency>
    <dependency>
      <groupId>vfa</groupId>
      <artifactId>persistence</artifactId>
      <scope>provided</scope>
      <version>8.0</version>
      <type>ejb</type>
    </dependency>
    <dependency>
      <groupId>vfa</groupId>
      <artifactId>facility</artifactId>
      <version>8.0</version>
      <type>ejb</type>
    </dependency>
</dependencies>
        <build>
        <plugins>
        <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-ear-plugin</artifactId>
        <configuration>
          <modules>
            <ejbModule>
                <groupId>vfa</groupId>
                <artifactId>facility</artifactId>
                <bundleDir>/</bundleDir>
            </ejbModule>
            <webModule>
                <groupId>vfa</groupId>
                <artifactId>facility-war</artifactId>
                <context-root>vfa</context-root>
            </webModule>
            <ejbModule>
                <groupId>vfa</groupId>
                <artifactId>persistence</artifactId>
                <bundleDir>/</bundleDir>
            </ejbModule>
          </modules>
        </configuration>
        </plugin>
        </plugins>

When I run "maven install", I find an application.xml in the target
directory that looks okay to me:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC
        "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
        "http://java.sun.com/dtd/application_1_3.dtd";>
<application>
  <display-name>facility-ear</display-name>
  <module>
    <ejb>facility-8.0.jar</ejb>
  </module>
  <module>
    <web>
      <web-uri>facility-war-8.0.war</web-uri>
      <context-root>vfa</context-root>
    </web>
  </module>
  <module>
    <ejb>persistence-8.0.jar</ejb>
  </module>
</application>

However, this isn't the application.xml that gets into the
ear.    The  one going into the ear
has no ejb modules defined.

<?xml version="1.0" encoding="UTF-8"?>
<application version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="ht
tp://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";>
<description>Facility Prototype</description>
<display-name>Facility Prototype</display-name>
<module>
<web>
<web-uri>facility-war-8.0.war</web-uri>
<context-root>/vfa</context-root>
</web>
</module>
</application>

Am I doing something wrong here?   Is this a bug?

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




--
.::You're welcome ::.

Reply via email to