Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
When one webapp module (war) depends on another webapp module (war), we sometimes get duplicate jars in the final webapp. This seems to only happen for snapshots.
For example:
$ unzip -l apache-tomee-8.0.7-20210417.052409-158-plume.zip | grep cxf-core 1431799 04-17-2021 05:23 apache-tomee-plume-8.0.7-SNAPSHOT/lib/cxf-core-3.5.0-SNAPSHOT.jar 1431799 04-17-2021 05:23 apache-tomee-plume-8.0.7-SNAPSHOT/lib/cxf-core-3.5.0-20210417.035622-203.jar
Removing the dependency between each webapp fixes the issue. This also means we must copy the maven dependencies from the root tomee-webapp module into each of the previously dependent webapp modules.