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 2021/08/12 06:39:58 UTC

[maven] branch maven-3.8.x_mavenProject_use_InheritableThreadLocal updated (509aece -> 8fae1d9)

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

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


    omit 509aece  prefer use of InheritableThreadLocal to fix possible issue when mojo start a thread and try to access some artifacts
     new 8fae1d9  [MNG-7212] Prefer use of InheritableThreadLocal to fix possible issue when mojo starts a thread and tries to access some artifacts

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (509aece)
            \
             N -- N -- N   refs/heads/maven-3.8.x_mavenProject_use_InheritableThreadLocal (8fae1d9)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:

[maven] 01/01: [MNG-7212] Prefer use of InheritableThreadLocal to fix possible issue when mojo starts a thread and tries to access some artifacts

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 8fae1d9cf42b7ddf5ab392ff9a7f3838467af421
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Thu Aug 12 16:12:59 2021 +1000

    [MNG-7212] Prefer use of InheritableThreadLocal to fix possible issue when mojo starts a thread and tries to access some artifacts
    
    Signed-off-by: Olivier Lamy <ol...@apache.org>
    
    This closes #521
---
 maven-core/src/main/java/org/apache/maven/project/MavenProject.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/maven-core/src/main/java/org/apache/maven/project/MavenProject.java b/maven-core/src/main/java/org/apache/maven/project/MavenProject.java
index 157b7a0..80cdeb7 100644
--- a/maven-core/src/main/java/org/apache/maven/project/MavenProject.java
+++ b/maven-core/src/main/java/org/apache/maven/project/MavenProject.java
@@ -143,7 +143,7 @@ public class MavenProject
 
     private Artifact artifact;
 
-    private final ThreadLocal<ArtifactsHolder> threadLocalArtifactsHolder = new ThreadLocal()
+    private final InheritableThreadLocal<ArtifactsHolder> threadLocalArtifactsHolder = new InheritableThreadLocal()
     {
         protected ArtifactsHolder initialValue()
         {