So the modification are:
- adding for the plugin maven-war-plugin:
        "<version>2.0-beta-2</version>" 
  (to make sure I am using the correct version)
- adding in the configuration of the war
        "<dependentWarExcludes>WEB-INF/lib/*.jar</dependentWarExcludes>"
- removing the dependency flag for common_jar

The classpath of the war is now correct. But the jar library is included
into the war file...

I tried also: "<dependentWarExcludes>*.jar</dependentWarExcludes>"

What is wrong ?
Andre

> -----Original Message-----
> From: Mike Perham [mailto:[EMAIL PROTECTED]
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> > 
> > I declared in ear's pom:
> > * the webModule simple_war and
> > * the javaModule common_jar
> > They are also declared as dependencies.
> > In war's pom, the jar has being declared as provided dependency.
> > 
> 
> This is your problem.  Remove the scope so that it becomes a compile
> dependency.  You will then need to exclude the jar from WEB-INF/lib.
> The WAR 2.0 plugin does not support excluding jars from 
> WEB-INF/lib due to issue MWAR-39.  You will need to use 2.0-beta-2.


------------------------------------------------------------------------------------------------------------
This message is intended for the addressee or its representative only. 
Any form of unauthorized use, publication, reproduction, copying or 
disclosure of the content of this e-mail is not permitted. If you are 
not the intended recipient of this e-mail message and its contents, 
please notify the sender immediately and delete this message and 
all its attachments subsequently.


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

Reply via email to