Uploaded image for project: 'Maven Enforcer Plugin'
  1. Maven Enforcer Plugin
  2. MENFORCER-336

Beanshell rule is not thread-safe

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-M1, 3.0.0-M2
    • Fix Version/s: 3.0.0
    • Component/s: Standard Rules
    • Labels:
      None

      Description

      The attached project has a beanshell rule that should always succeed when you run maven install.

      However, if you run it with multiple threads it sometimes fails.  This shows that the evaluation of this beanshell rule is not thread-safe, although maven-enforcer-plugin claims to be thread safe.

      Command to test it inside the base project (on a multi-core machine):

      while mvn -T 2C clean install ; do sleep 1; done

      This fails at some point sooner or later.

       

        Attachments

        1. example.zip
          2 kB
          Peter Verthez

          Issue Links

            Activity

              People

              • Assignee:
                olamy Olivier Lamy
                Reporter:
                verthezpw Peter Verthez
              • Votes:
                0 Vote for this issue
                Watchers:
                3 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