You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2021/06/22 15:38:00 UTC

[jira] [Updated] (MNG-6984) maven concurrent builds ignore synchronized in mojo execute-method

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

Michael Osipov updated MNG-6984:
--------------------------------
    Fix Version/s: wontfix-candidate
                   waiting-for-feedback

> maven concurrent builds ignore synchronized in mojo execute-method
> ------------------------------------------------------------------
>
>                 Key: MNG-6984
>                 URL: https://issues.apache.org/jira/browse/MNG-6984
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.6.0, 3.6.3
>            Reporter: Thomas Lörcher
>            Priority: Critical
>             Fix For: waiting-for-feedback, wontfix-candidate
>
>
> I have written a custom maven-Mojo. 
>  Since libraries used in this mojo are not thread-safe, i followed the guide [https://cwiki.apache.org/confluence/display/MAVEN/Parallel+builds+in+Maven+3] to avoid parallel executions of the code.
> Doesnt seem to work though.
> I tried to use other approaches like semaphors or synchronized functions, maven does execute the code snippets in parallel. It seems to me that every mvn module will get build in an own process.
> Build started using 
> mvn clean package -T1C



--
This message was sent by Atlassian Jira
(v8.3.4#803005)