maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Lörcher (Jira) <j...@apache.org>
Subject [jira] [Created] (MNG-6984) maven concurrent builds ignore synchronized in mojo execute-method
Date Wed, 09 Sep 2020 10:44:00 GMT
Thomas Lörcher created MNG-6984:
-----------------------------------

             Summary: 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.3, 3.6.0
            Reporter: Thomas Lörcher


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.



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

Mime
View raw message