Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-6201

Duplicate jars for each module depending on the same library

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 11.3, 12.3, 12.5
    • None
    • apisupport - Maven
    • None

    Description

      Attached example of a very simple suite (issuesuite) with two modules (modulea and moduleb): both depend on Apache commons-lang library and in the cluster folder produced by nbm:cluster from the suite this is the folder structure:

      • issuesuite
        • target
          • netbeans_clusters
            • issuesuite
              • modules
                • ext
                  • org.example.modulea
                    • commons-lang
                      • commons-lang.jar <<<
                  • org.example.moduleb
                    • commons-lang
                      • commons-lang.jar <<<

      It ended up packaging twice the commons-lang.jar library.
      I have many external library dependencies, if this is the behavior, I will end up with a LOT of redundant files...

      How to fix this? Or is it the intended behavior?
      Thanks!

      Attachments

        1. issuesuite.zip
          9 kB
          matteodg

        Activity

          People

            Unassigned Unassigned
            matteodg@infinito.it matteodg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: