Hi Kenny
Thanks a lot. I removed the <modules> config, and set generateApplicationXml to
true. Please find my pom.xml attached. Now the ear is created with the
dependent libraries, but the generated application.xml is simply
<?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>sample</display-name>
</application>
I expected it to list my ejb module.
Thanks,
Simon
-----Ursprüngliche Nachricht-----
Von: Kenney Westerhof [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 19. April 2006 17:41
An: Maven Users List
Betreff: Re: M2: Assembling modules in an ear
On Wed, 19 Apr 2006, Gunzenreiner Simon wrote:
- Drop the <scope>compile</scope> - it's the default anyway, and not
needed for compilation of the ear
- the modules section is only needed for modules that need special
configuration, like a war module usually gets a contextRoot
- do you provide your own application.xml somewhere or do you use the
GenerateApplicationXmlMojo?
- Did you specify the configuration at the global level or in executions?
If you could paste your plugin configuration in the mail, that would be
helpful.
-- Kenney
> I am trying to create an ear by assembling multiple other projects in Maven
> 2.0.4. My ear config files are located in a separate project with
> <packaging>ear</packaging>. All dependent projects are listed as <dependency>
> with scope <scope>compile</scope>. In addition, I added the <modules>
> configuration as described here:
> http://maven.apache.org/plugins/maven-ear-plugin/howto.html.
>
> I am facing two problems now:
> - I get an Error message if I add my EJB project to the <modules> list:
> Artifact[myGroupId:sample-ejb:ejb] is not a dependency of the project.
> although I added this project to the dependency list as well as to the
> module list.
> - Java (client) modules are not added to the generated application.xml
>
> Any hints really appreciated.
>
> Thanks
> Simon
>
> ---------------------------------------------------------------------
> 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]
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>winterthur.jackpot.sample</groupId>
<artifactId>sample</artifactId>
<packaging>ear</packaging>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>winterthur.jackpot</groupId>
<artifactId>jp-base</artifactId>
<version>5.0.1</version>
</dependency>
<dependency>
<groupId>winterthur.jackpot.sample</groupId>
<artifactId>sample-ejb-client-view</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>winterthur.jackpot.sample</groupId>
<artifactId>sample-ejb</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>winterthur.jackpot.sample</groupId>
<artifactId>sample-ejb-client</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<configuration>
<earSourceDirectory>EarContent</earSourceDirectory>
<generateApplicationXml>
true
</generateApplicationXml>
</configuration>
</plugin>
</plugins>
</build>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]