Uploaded image for project: 'Maven Shade Plugin'
  1. Maven Shade Plugin
  2. MSHADE-148

Shade Plugin gets stuck in infinite loop building dependency reduced POM

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.4.1, 3.2.2
    • None
    • OS X 10.7.5

    Description

      I have encountered a bug whereby the shade plugin gets stuck in an infinite loop in the step of creating a dependency reduced POM.

      I have attached a minimal POM that reproduces the issue and done some debugging on this. The problem seems to be caused by using both the jar and test-jar version of a dependency (jena-fuseki in my example) while also including a jar dependency that is a transitive dependency of the other dependencies (jena-arq in my example). Removing either the jar/test-jar resolves the problem and so does removing the other jar dependency.

      The problem appears to be that the plugin is getting stuck endlessly trying to produce the dependency-reduced-pom.xml

      If I watch the file over time it is repeatedly deleted and rewritten, each time it is written it gets larger. When I manage to kill the process at a point where the file is non-empty I can see that the plugin is endlessly adding the same set of <exclusions> to one of the jena-fuseki dependencies.

      Attachments

        1. mshade-148-reproduction-pom.xml
          3 kB
          Andrew Bayer
        2. MSHADE-148.patch
          2 kB
          Thomas White
        3. dependency-reduced-pom.xml
          49 kB
          Rob Vesse
        4. shade-bug.txt
          857 kB
          Rob Vesse
        5. pom.xml
          2 kB
          Rob Vesse

        Issue Links

          Activity

            People

              khmarbaise Karl Heinz Marbaise
              rvesse Rob Vesse
              Votes:
              0 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m