You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2024/04/27 16:25:47 UTC
(maven-artifact-plugin) branch MARTIFACT-65 created (now fb9e5b6)
This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a change to branch MARTIFACT-65
in repository https://gitbox.apache.org/repos/asf/maven-artifact-plugin.git
at fb9e5b6 [MARTIFACT-65] BuildInfoWriter not threadsafe
This branch includes the following new commits:
new fb9e5b6 [MARTIFACT-65] BuildInfoWriter not threadsafe
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.
(maven-artifact-plugin) 01/01: [MARTIFACT-65] BuildInfoWriter not threadsafe
Posted by hb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch MARTIFACT-65
in repository https://gitbox.apache.org/repos/asf/maven-artifact-plugin.git
commit fb9e5b61c98703452dde1c100a26736d1b5f006b
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sat Apr 27 18:25:35 2024 +0200
[MARTIFACT-65] BuildInfoWriter not threadsafe
---
.../java/org/apache/maven/plugins/artifact/buildinfo/BuildinfoMojo.java | 2 +-
.../java/org/apache/maven/plugins/artifact/buildinfo/CompareMojo.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/maven/plugins/artifact/buildinfo/BuildinfoMojo.java b/src/main/java/org/apache/maven/plugins/artifact/buildinfo/BuildinfoMojo.java
index f5a7db3..38a4b4e 100644
--- a/src/main/java/org/apache/maven/plugins/artifact/buildinfo/BuildinfoMojo.java
+++ b/src/main/java/org/apache/maven/plugins/artifact/buildinfo/BuildinfoMojo.java
@@ -33,7 +33,7 @@ import org.eclipse.aether.artifact.Artifact;
* <a href="https://reproducible-builds.org/docs/jvm/">Reproducible Builds for the JVM</a>
* for mono-module build, and extended for multi-module build.
*/
-@Mojo(name = "buildinfo", defaultPhase = LifecyclePhase.VERIFY, threadSafe = true)
+@Mojo(name = "buildinfo", defaultPhase = LifecyclePhase.VERIFY, threadSafe = false)
public class BuildinfoMojo extends AbstractBuildinfoMojo {
/**
* Specifies whether to attach the generated buildinfo file to the project.
diff --git a/src/main/java/org/apache/maven/plugins/artifact/buildinfo/CompareMojo.java b/src/main/java/org/apache/maven/plugins/artifact/buildinfo/CompareMojo.java
index a37eb56..72c3e9d 100644
--- a/src/main/java/org/apache/maven/plugins/artifact/buildinfo/CompareMojo.java
+++ b/src/main/java/org/apache/maven/plugins/artifact/buildinfo/CompareMojo.java
@@ -51,7 +51,7 @@ import static org.apache.maven.plugins.artifact.buildinfo.BuildInfoWriter.getArt
*
* @since 3.2.0
*/
-@Mojo(name = "compare", threadSafe = true)
+@Mojo(name = "compare", threadSafe = false)
public class CompareMojo extends AbstractBuildinfoMojo {
/**
* Repository for reference build, containing either reference buildinfo file or reference artifacts.<br/>