You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (Jira)" <ji...@apache.org> on 2021/06/26 14:17:00 UTC

[jira] [Updated] (MSITE-873) The following plugins are not marked @threadSafe in org.apache.maven.plugins:maven-site-plugin:3.9.1

     [ https://issues.apache.org/jira/browse/MSITE-873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated MSITE-873:
--------------------------------
    Description: 
Hello Maven Site Plugin Team,

This is my first post here, apologies in advanced if this post is not respecting conventions.

There is currently an issue with the version 3.9.1 of maven-site-plugin when running in multithread environment.

{code:xml}<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-site-plugin</artifactId>
  <version>3.9.1</version>
</plugin>{code}

 

The setup is simple and reproducible 100%.

Nowadays, maven multimode is very popular, especially among micro services pattern.

For instance, within one maven project, possibility to have many multi module micro service.

 

And often it makes sense to run maven commands on them in parallel.

 

Unfortunately, the current maven multi module will yield this issue:

 {noformat}
 [INFO] --------------------------------[ pom ]---------------------------------
 [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    *
 * 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 X:
 org.apache.maven.plugins:maven-site-plugin:3.9.1
 Enable debug to see more precisely which goals are not marked @threadSafe.
 *****************************************************************
 {noformat}
  

Allowing this plugin to fully be compatible with parallel maven execution would be a great plus of this plugin.

 

Also, maybe the fix is as simple as 

{code:java}@Mojo(name = "generate", requiresProject = true, defaultPhase = LifecyclePhase.INTEGRATION_TEST, requiresDependencyResolution = ResolutionScope.TEST, threadSafe = true){code}

Nonetheless, wanted to say thanks for this great project, and hopefully to have this issue fixed.

Good day!

  was:
Hello Maven Site Plugin Team,

This is my first post here, apologies in advanced if this post is not respecting conventions.

There is currently an issue with the version 3.9.1 of maven-site-plugin when running in multithread environment.

 

<plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-site-plugin</artifactId>
 <version>3.9.1</version>
</plugin>

 

The setup is simple and reproducible 100%.

Nowadays, maven multimode is very popular, especially among micro services pattern.

For instance, within one maven project, possibility to have many multi module micro service.

 

And often it makes sense to run maven commands on them in parallel.

 

Unfortunately, the current maven multi module will yield this issue:

 
[INFO] --------------------------------[ pom ]---------------------------------
[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    *
* 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 X:
org.apache.maven.plugins:maven-site-plugin:3.9.1
Enable debug to see more precisely which goals are not marked @threadSafe.
*****************************************************************
 

Allowing this plugin to fully be compatible with parallel maven execution would be a great plus of this plugin.

 

Also, maybe the fix is as simple as 

@Mojo(name = "generate", requiresProject = true, defaultPhase = LifecyclePhase.INTEGRATION_TEST, requiresDependencyResolution = ResolutionScope.TEST, threadSafe = true)

 

Nonetheless, wanted to say thanks for this great project, and hopefully to have this issue fixed.

 

Good day!

 

 

 

 


> The following plugins are not marked @threadSafe in org.apache.maven.plugins:maven-site-plugin:3.9.1
> ----------------------------------------------------------------------------------------------------
>
>                 Key: MSITE-873
>                 URL: https://issues.apache.org/jira/browse/MSITE-873
>             Project: Maven Site Plugin
>          Issue Type: Bug
>            Reporter: PatPatPat123
>            Priority: Major
>
> Hello Maven Site Plugin Team,
> This is my first post here, apologies in advanced if this post is not respecting conventions.
> There is currently an issue with the version 3.9.1 of maven-site-plugin when running in multithread environment.
> {code:xml}<plugin>
>   <groupId>org.apache.maven.plugins</groupId>
>   <artifactId>maven-site-plugin</artifactId>
>   <version>3.9.1</version>
> </plugin>{code}
>  
> The setup is simple and reproducible 100%.
> Nowadays, maven multimode is very popular, especially among micro services pattern.
> For instance, within one maven project, possibility to have many multi module micro service.
>  
> And often it makes sense to run maven commands on them in parallel.
>  
> Unfortunately, the current maven multi module will yield this issue:
>  {noformat}
>  [INFO] --------------------------------[ pom ]---------------------------------
>  [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    *
>  * 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 X:
>  org.apache.maven.plugins:maven-site-plugin:3.9.1
>  Enable debug to see more precisely which goals are not marked @threadSafe.
>  *****************************************************************
>  {noformat}
>   
> Allowing this plugin to fully be compatible with parallel maven execution would be a great plus of this plugin.
>  
> Also, maybe the fix is as simple as 
> {code:java}@Mojo(name = "generate", requiresProject = true, defaultPhase = LifecyclePhase.INTEGRATION_TEST, requiresDependencyResolution = ResolutionScope.TEST, threadSafe = true){code}
> Nonetheless, wanted to say thanks for this great project, and hopefully to have this issue fixed.
> Good day!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)