[ https://issues.apache.org/jira/browse/MNG-5965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov updated MNG-5965: -------------------------------- Comment: was deleted (was: [~janos.gyerik], cannot reproduce: {noformat} PS D:\Entwicklung\workspace-4.7\toll> mvn -V install:install-file "-Dfile=pom.xml" -T10 -Dgrou pId=one -DartifactId=one -Dversion=1 -Dpackaging=pom Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T20:33:14+02:00) Maven home: D:\Entwicklung\Programme\apache-maven-3.5.4\bin\.. Java version: 1.8.0_181, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_181\jre Default locale: de_DE, platform encoding: Cp1252 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows" [INFO] Scanning for projects... [INFO] [INFO] Using the MultiThreadedBuilder implementation with a thread count of 10 [INFO] [INFO] -----------------------------< toll:toll >------------------------------ [INFO] Building toll 0.0.1-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ toll --- [INFO] Installing D:\Entwicklung\workspace-4.7\toll\pom.xml to C:\Users\mosipov\.m2\repository\one\one\1\one-1.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.342 s (Wall Clock) [INFO] Finished at: 2018-12-26T13:18:54+01:00 [INFO] ------------------------------------------------------------------------ {noformat} Looking into the IT...) > Parallel build multiplies work if multiple goals are given > ---------------------------------------------------------- > > Key: MNG-5965 > URL: https://issues.apache.org/jira/browse/MNG-5965 > Project: Maven > Issue Type: Bug > Components: Bootstrap & Build > Affects Versions: 3.3.9 > Environment: Windows 7 64bit > Reporter: Matthias Schmalz > Assignee: Michael Osipov > Priority: Major > Attachments: parallel.test.zip > > > When I run a parallel build which invokes multiple goals Maven multiplies the > work e.g. when I run > install sonar:sonar > Every phase is executed once as expected. However when I run > install sonar:sonar -T 4 > Every phase is executed twice. > The problem can be reproduced with a single simple Java project (of course > parallel builds are useless with a single module). Debugging showed that > every Mojo is really called twice per project. > Find attached a simple project and two build outputs, where you can see that > the parallel build is doing everything twice (you can ignore that Sonar fails > in the end, due to no server is up). -- This message was sent by Atlassian JIRA (v7.6.3#76005)