I'm trying to use the Maven cargo uberwar plugin. I would like to do that :
<build>
<plugins>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.2.2</version>
<extensions>true</extensions>
<configuration>
<descriptor>src/assemble/merge.xml</descriptor>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>my.first.war</groupId>
<artifactId>MyFirstWar</artifactId>
<type>war</type>
<exclusions>
<exclusion>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>my.second.war</groupId>
<artifactId>MySecondWar</artifactId>
<type>war</type>
<exclusions>
<exclusions>
<exclusion>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
But it doesn't work, javassist is still in my libs after install my uberwar.
I don't want to make the exclusions in my two wars, I want to do the exclusion in my uberwar. This solution doesn't work, is there any other one ?
Thanks for help