[
https://issues.apache.org/jira/browse/MNG-7380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov closed MNG-7380.
-------------------------------
Fix Version/s: 4.0.0
4.0.0-alpha-1
3.8.5
(was: 4.0.x-candidate)
(was: 3.8.x-candidate)
Resolution: Fixed
Fixed with
[18725ec1e05e01b06557830ae10e83bdb933ab1a|https://gitbox.apache.org/repos/asf?p=maven.git&a=commit&h=18725ec1e05e01b06557830ae10e83bdb933ab1a]
in master and with
[99de6b49ee066c102737e4cb99af4be3edb257df|https://gitbox.apache.org/repos/asf?p=maven.git&a=commit&h=99de6b49ee066c102737e4cb99af4be3edb257df]
in 3.8.x.
> Don't log non-threadsafe warning if only building a single module
> -----------------------------------------------------------------
>
> Key: MNG-7380
> URL: https://issues.apache.org/jira/browse/MNG-7380
> Project: Maven
> Issue Type: Improvement
> Components: Plugins and Lifecycle
> Affects Versions: 3.8.4
> Reporter: Falko Modler
> Assignee: Michael Osipov
> Priority: Minor
> Fix For: 4.0.0, 4.0.0-alpha-1, 3.8.5
>
>
> When building a _single_ module (via {{-f}}, {{-pl}} or simply cd'ing into
> it) with e.g. {{-T1C}} in {{.mvn/maven.config}} logs a warning if a
> non-threadsafe mojo is executed, e.g.:
> {noformat}
> [WARNING] *****************************************************************
> [WARNING] * Your build is requesting parallel execution, but project *
> [WARNING] * contains the following plugin(s) that have goals not marked *
> [WARNING] * as @threadSafe to support parallel building. *
> [WARNING] * While this /may/ work fine, please look for plugin updates *
> [WARNING] * and/or request plugins be made thread-safe. *
> [WARNING] * If reporting an issue, report it against the plugin in *
> [WARNING] * question, not against maven-core *
> [WARNING] *****************************************************************
> [WARNING] The following plugins are not marked @threadSafe in
> code-with-quarkus:
> [WARNING] io.quarkus.platform:quarkus-maven-plugin:2.6.1.Final
> [WARNING] Enable debug to see more precisely which goals are not marked
> @threadSafe.
> [WARNING] *****************************************************************
> {noformat}
> This is unnecessary noise because with only a single module there can never
> be a concurrency issue, no matter how many threads are enabled.
> Maven should check if it's building only one module before logging this
> warning.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)