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

Gili edited comment on MINSTALL-205 at 11/11/24 2:56 PM:
---------------------------------------------------------

Invoking {{mvn verify install:install}} causes the warning to disappear. I know 
that "mvn install" is not the same as "mvn install:install" but it's still not 
clear why the former would trigger a warning claiming that the "install" or 
"install-file" goals are not thread-safe when they are... This seems like a 
bug, no? If not, it would be helpful to clarify the documentation on this 
point.}}


was (Author: cowwoc):
{{Invoking {{mvn verify install:install}} causes the warning to disappear. I 
know that "mvn install" is not the same as "mvn install:install" but it's still 
not clear why the former would trigger a warning claiming that the "install" or 
"install-file" goals are not thread-safe when they are... This seems like a 
bug, no? If not, it would be helpful to clarify the documentation on this 
point.}}

> 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
>          Components: install:install, install:install-file
>    Affects Versions: 3.1.3, 4.0.0-beta-1
>         Environment: Maven 3.9.9
>            Reporter: Gili
>            Priority: Major
>
> ePer 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