[ 
https://issues.apache.org/jira/browse/MNG-6984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17194211#comment-17194211
 ] 

Michael Osipov commented on MNG-6984:
-------------------------------------

Can you futher describe how race conditions affect your build, maybe a log file 
if possible?

> 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
>
> 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)

Reply via email to