You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Guillaume Nodet (Jira)" <ji...@apache.org> on 2022/10/20 08:11:02 UTC
[jira] [Updated] (MNG-7380) Don't log non-threadsafe warning if only building a single module
[ https://issues.apache.org/jira/browse/MNG-7380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet updated MNG-7380:
---------------------------------
Fix Version/s: 4.0.0-alpha-2
> 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: 3.8.5, 4.0.0-alpha-1, 4.0.0-alpha-2, 4.0.0
>
>
> 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.10#820010)