You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Peter Verthez (JIRA)" <ji...@apache.org> on 2019/08/07 12:14:00 UTC

[jira] [Updated] (MENFORCER-336) Beanshell rule is not thread-safe

     [ https://issues.apache.org/jira/browse/MENFORCER-336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Verthez updated MENFORCER-336:
------------------------------------
    Affects Version/s: 3.0.0-M2

Tested with 3.0.0-M2 as well, same result.

> Beanshell rule is not thread-safe
> ---------------------------------
>
>                 Key: MENFORCER-336
>                 URL: https://issues.apache.org/jira/browse/MENFORCER-336
>             Project: Maven Enforcer Plugin
>          Issue Type: Bug
>          Components: Standard Rules
>    Affects Versions: 3.0.0-M1, 3.0.0-M2
>            Reporter: Peter Verthez
>            Priority: Critical
>         Attachments: example.zip
>
>
> 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.
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)