Did you add the common jar to the manifest of the war?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 15, 2006 7:44 AM
To: users@maven.apache.org
Subject: common jars between modules in EAR
Hello all,
I would like to build an ear with some
Well, yes by maven
The ear and the war are set to generate a manifest:
archive
manifest
addClasspathtrue/addClasspath
/manifest
/archive
after verification, the classpath of the war is empty...
I think the reason is probably because the
/optional
/dependency
Along with your addClasspathtrue/addClasspath
HTH
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 15 June 2006 14:31
To: users@maven.apache.org
Subject: RE: common jars between modules in EAR
Well, yes by maven
The ear and the war
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 15, 2006 7:44 AM
To: users@maven.apache.org
Subject: common jars between modules in EAR
I declared in ear's pom:
* the webModule simple_war and
* the javaModule common_jar
They are also
So the modification are:
- adding for the plugin maven-war-plugin:
version2.0-beta-2/version
(to make sure I am using the correct version)
- adding in the configuration of the war
dependentWarExcludesWEB-INF/lib/*.jar/dependentWarExcludes
- removing the dependency flag for
warSourceExcludesWEB-INF/lib/*.jar/warSourceExcludes
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 15, 2006 9:51 AM
To: users@maven.apache.org
Subject: RE: common jars between modules in EAR
So the modification are:
- adding
I would like to thank very much every involved person.
It is worked !)
So, the solution for building an ear with some war-s and some common jar-s
is the following:
- pom.xml
- ear
|- pom.xml
- war_1
|- pom.xml
...
- war_n
|-