Uploaded image for project: 'Maven Plugin Tools'
  1. Maven Plugin Tools
  2. MPLUGIN-3

apparent race condition when installing a plugin and executing the same plugin in a single build session

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      Steps to reproduce:

      go into <maven>/maven-core-it/it0013

      execute:

      m2 -cpl -e clean:clean install it0013:it0013

      The first time around (if you have a clean local repo WRT it0013), it should simply install the plugin, and run it. HOWEVER, subsequent runs will intermittently result in an NPE in java.util.jar.JarFile. I believe this is a result of initializing the plugin container for it0013:it0013 early in the lifecycle executor in order to determine whether this mojo is an aggregator. When the install mojo completes, it will have overwritten the original artifact file used in this plugin container's classpath. I think this is what's causing the problem, though I can't exactly work out why it's intermittent.

      At any rate, we need to address this.

      Attachments

        Issue Links

          Activity

            People

              jdcasey John Dennis Casey
              jdcasey John Dennis Casey
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 6h
                  6h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 6h
                  6h