You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Thomas Reinhardt (Jira)" <ji...@apache.org> on 2022/01/28 16:36:00 UTC
[jira] [Commented] (MTOOLCHAINS-31) Not threadsafe for parallel execution
[ https://issues.apache.org/jira/browse/MTOOLCHAINS-31?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17483839#comment-17483839 ]
Thomas Reinhardt commented on MTOOLCHAINS-31:
---------------------------------------------
I marked the plugin as threadSafe:
[https://github.com/apache/maven-toolchains-plugin/pull/8]
this is trivially correct, as the plugin has the default InstantiationStrategy (PER_LOOKUP). Also no static variables exist so no state could be shared across executions.
> Not threadsafe for parallel execution
> -------------------------------------
>
> Key: MTOOLCHAINS-31
> URL: https://issues.apache.org/jira/browse/MTOOLCHAINS-31
> Project: Maven Toolchains Plugin
> Issue Type: Improvement
> Affects Versions: 3.0.0
> Environment: maven 3.6.1
> Reporter: Hüseyin Kartal
> Priority: Major
>
> Running maven in parallel mode result in following output which also includes TOOLCHAINS plugin.
> {noformat}
> *****************************************************************
> * Your build is requesting parallel execution, but project *
> * contains the following plugin(s) that have goals not marked *
> * as @threadSafe to support parallel building. *
> * While this /may/ work fine, please look for plugin updates *
> * and/or request plugins be made thread-safe. *
> * If reporting an issue, report it against the plugin in *
> * question, not against maven-core *
> *****************************************************************
> The following plugins are not marked @threadSafe in Application component: core:
> com.sun.xml.ws:jaxws-maven-plugin:2.3.2
> org.apache.maven.plugins:maven-jxr-plugin:3.0.0
> org.apache.maven.plugins:maven-toolchains-plugin:3.0.0
> Enable debug to see more precisely which goals are not marked @threadSafe.
> *****************************************************************{noformat}
> Toolchains plugin should made and/or marked threadSafe.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)