Skip to content

Commit

Permalink
[MNG-7212] Prefer use of InheritableThreadLocal to fix possible issue…
Browse files Browse the repository at this point in the history
… when mojo starts a thread and tries to access some artifacts

Signed-off-by: Olivier Lamy <olamy@apache.org>

This closes #521
  • Loading branch information
olamy authored and michael-o committed Aug 12, 2021
1 parent 865dcaa commit 8fae1d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit 8fae1d9

Please sign in to comment.