Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-3721

Remove dependencies between tomee-webapp modules

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.0.7, 8.0.8
    • Component/s: TomEE Build
    • Labels:
      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.

        Attachments

          Activity

            People

            • Assignee:
              dblevins David Blevins
              Reporter:
              dblevins David Blevins
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: