Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53957

hpi bundles transitive dependencies of test scope dependencies

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • maven-hpi-plugin
    • None

      I have a plugin that depends on the test jar of org.jenkins-ci.plugins.workflow:workflow-support:jar with scope test

      When I package this plugin I find that the transitive dependencies of that dependency are included in the hpi archive when they should be ignored as they come from a test dependency.

      [INFO] +- org.jenkins-ci.plugins.workflow:workflow-support:jar:tests:2.19:test
      [INFO] |  \- org.jboss.marshalling:jboss-marshalling-river:jar:1.4.12.jenkins-3:compile
      [INFO] |     \- org.jboss.marshalling:jboss-marshalling:jar:1.4.12.jenkins-3:compile
      

      this code is most likely wrong as it is filtering the individual artifacts after the building of the tree.
      This is incorrect as the exclusion should be happening before the building of the tree, or the filtering should accept that the library is a decendant of something else that has been filtered meaning it should not include this.

            Unassigned Unassigned
            teilo James Nord
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: