You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Olivier Lamy (Jira)" <ji...@apache.org> on 2020/05/26 10:47: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 ]

Olivier Lamy updated MENFORCER-336:
-----------------------------------
    Fix Version/s: 3.0.0

> 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
>            Assignee: Olivier Lamy
>            Priority: Critical
>             Fix For: 3.0.0
>
>         Attachments: example.zip
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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
(v8.3.4#803005)