You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2022/01/11 14:54:33 UTC

[maven] branch maven-3.8.x updated: [MNG-7380] Don't log non-threadsafe warning if only building a single module

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch maven-3.8.x
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/maven-3.8.x by this push:
     new 99de6b4  [MNG-7380] Don't log non-threadsafe warning if only building a single module
99de6b4 is described below

commit 99de6b49ee066c102737e4cb99af4be3edb257df
Author: Falko Modler <fa...@users.noreply.github.com>
AuthorDate: Sun Jan 9 23:58:40 2022 +0100

    [MNG-7380] Don't log non-threadsafe warning if only building a single module
    
    This closes #655
---
 .../java/org/apache/maven/lifecycle/internal/builder/BuilderCommon.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/BuilderCommon.java b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/BuilderCommon.java
index f5c8e3e..25ab6a4 100644
--- a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/BuilderCommon.java
+++ b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/BuilderCommon.java
@@ -98,7 +98,7 @@ public class BuilderCommon
 
         lifecycleDebugLogger.debugProjectPlan( project, executionPlan );
 
-        if ( session.getRequest().getDegreeOfConcurrency() > 1 )
+        if ( session.getRequest().getDegreeOfConcurrency() > 1 && session.getProjects().size() > 1 )
         {
             final Set<Plugin> unsafePlugins = executionPlan.getNonThreadSafePlugins();
             if ( !unsafePlugins.isEmpty() )