Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1221

Test dependencies in m2repo of the fat jar

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: None
    • Fix Version/s: 2017.4.0
    • Component/s: plugins
    • Labels:
      None

      Description

      There are test libraries (e.g. powermock) in the m2repo in the fat jar produced by the maven plugin.

      A reproducer: https://github.com/michalszynkiewicz/SWARM-1221

      This is an issue for prod (because we don't usually build test dependencies, but here they end up in the "runtime" jar).

       target]$ unzip -q full-project-package-swarm.jar 
       target]$ find m2repo/ -name '*.jar' | grep powermock
      m2repo/org/powermock/powermock-module-testng-common/1.6.2/powermock-module-testng-common-1.6.2.jar
      m2repo/org/powermock/powermock-classloading-base/1.6.2/powermock-classloading-base-1.6.2.jar
      m2repo/org/powermock/powermock-classloading-base/1.6.2/powermock-classloading-base-1.6.2-sources.jar
      m2repo/org/powermock/powermock-core/1.6.2/powermock-core-1.6.2.jar
      m2repo/org/powermock/powermock-core/1.6.2/powermock-core-1.6.2-sources.jar
      m2repo/org/powermock/powermock-easymock-release-full/1.6.2/powermock-easymock-release-full-1.6.2-full.jar
      m2repo/org/powermock/powermock-module-testng/1.6.2/powermock-module-testng-1.6.2-sources.jar
      m2repo/org/powermock/powermock-module-testng/1.6.2/powermock-module-testng-1.6.2.jar
      m2repo/org/powermock/powermock-module-junit4-legacy/1.6.2/powermock-module-junit4-legacy-1.6.2.jar
      m2repo/org/powermock/powermock-module-junit4-legacy/1.6.2/powermock-module-junit4-legacy-1.6.2-sources.jar
      m2repo/org/powermock/powermock-api-support/1.6.2/powermock-api-support-1.6.2-sources.jar
      m2repo/org/powermock/powermock-api-support/1.6.2/powermock-api-support-1.6.2.jar
      m2repo/org/powermock/powermock-reflect/1.6.2/powermock-reflect-1.6.2.jar
      m2repo/org/powermock/powermock-reflect/1.6.2/powermock-reflect-1.6.2-sources.jar
      m2repo/org/powermock/powermock-module-junit4-common/1.6.2/powermock-module-junit4-common-1.6.2.jar
      m2repo/org/powermock/powermock-module-junit4-common/1.6.2/powermock-module-junit4-common-1.6.2-sources.jar
      m2repo/org/powermock/powermock-api-easymock/1.6.2/powermock-api-easymock-1.6.2-sources.jar
      m2repo/org/powermock/powermock-api-easymock/1.6.2/powermock-api-easymock-1.6.2.jar
      m2repo/org/powermock/powermock-module-junit3/1.6.2/powermock-module-junit3-1.6.2-sources.jar
      m2repo/org/powermock/powermock-module-junit3/1.6.2/powermock-module-junit3-1.6.2.jar
      m2repo/org/powermock/powermock-module-junit4/1.6.2/powermock-module-junit4-1.6.2.jar
      m2repo/org/powermock/powermock-module-junit4/1.6.2/powermock-module-junit4-1.6.2-sources.jar
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  mszynkie Michal Szynkiewicz
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: