[ 
https://issues.apache.org/jira/browse/MINSTALL-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17897199#comment-17897199
 ] 

Gili commented on MINSTALL-205:
-------------------------------

When I try version 4.0.0-beta-1 I get:
{quote}[WARNING] * Your build is requesting parallel execution, but this        
 *
[WARNING] * project contains the following plugin(s) that have goals not  *
[WARNING] * marked as thread-safe to support parallel execution.          *
[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 Apache Maven.                           *
[WARNING] *****************************************************************
[WARNING] The following goals are not marked as thread-safe in root:
[WARNING]   org.apache.maven.plugins:maven-install-plugin:4.0.0-beta-1:install
[WARNING] *****************************************************************
{quote}
This seems to imply that either the documentation is wrong or the 
implementation is wrong. The documentation I am looking at is 
[https://maven.apache.org/plugins/maven-install-plugin/install-mojo.html] and 
https://maven.apache.org/plugins/maven-install-plugin/install-mojo.html

> Warning when using install-file in parallel builds
> --------------------------------------------------
>
>                 Key: MINSTALL-205
>                 URL: https://issues.apache.org/jira/browse/MINSTALL-205
>             Project: Maven Install Plugin
>          Issue Type: Bug
>    Affects Versions: 3.1.3
>         Environment: Maven 3.9.9
>            Reporter: Gili
>            Priority: Major
>
> Per the online documentation, `install-file`:
>  * Executes as an aggregator goal.
>  * The goal is thread-safe and supports parallel builds.
> But when I use it in a parallel build I get this warning:
>  
> {{[WARNING] 
> *****************************************************************}}
> {{[WARNING] * The                                                           
> *}}
> {{[WARNING] * 
> org.apache.maven.plugins:maven-install-plugin:3.1.3:install-file *}}
> {{[WARNING] * aggregator mojo is already being executed in this parallel    
> *}}
> {{[WARNING] * build, those kind of mojos require exclusive access to        
> *}}
> {{[WARNING] * reactor to prevent race conditions. This mojo execution will  
> *}}
> {{[WARNING] * be blocked until the aggregator mojo is done.                 
> *}}
> {{[WARNING] 
> *****************************************************************}}
>  
> Expected behavior: If the plugin is safe for use in parallel builds, it 
> should not trigger this warning.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to