On 14 Nov 2016, Clemens von Musil wrote:

> Hi again,
> 
> thanks a lot for your advice, Martin.
> 
> We spent a lot of time into skinny wars but stuck with ejb dependencies.
> 
> The EAR contains several WAR modules and these WAR modules share several
> EJB modules.
> Unfortunately, the skinny war option seems to ignore transitive EJB
> dependencies so that we get errors with duplicate beans on startup.

The skinnyWar-option should just remove JARs from the WAR that are also
defined in the POM of the EAR module. Nothing special about transitive
dependencies here I' guess.

Try this again:
https://maven.apache.org/plugins/maven-ear-plugin/examples/skinny-wars.html

If you list a dependency in the EAR, it should then be removed from the
WAR that is bundled with the EAR (this not the WAR installed in your
local repo!).

If this is not the case, there is either a bug, or you are doing
something wrong. But you would need to provide more details: POMs of the
WAR and the EAR and a listing of the relevant EAR and WAR contents.

hth,
- martin

Attachment: pgpt83DaVhmrL.pgp
Description: Digitale Signatur von OpenPGP

Reply via email to