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

Beanshell rule is not thread-safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.0.0-M1, 3.0.0-M2
    • 3.0.0
    • Standard Rules
    • 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

              olamy Olivier Lamy
              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