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 2026/07/24 10:29:30 UTC
(maven-artifact-plugin) branch master updated: replace info message with debug
This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-artifact-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new b4afc63 replace info message with debug
b4afc63 is described below
commit b4afc63eab93668805a52c0882cbb8dbb4035120
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Fri Jul 24 09:51:19 2026 +0200
replace info message with debug
---
.../plugins/artifact/buildinfo/ReferenceBuildinfoUtil.java | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/main/java/org/apache/maven/plugins/artifact/buildinfo/ReferenceBuildinfoUtil.java b/src/main/java/org/apache/maven/plugins/artifact/buildinfo/ReferenceBuildinfoUtil.java
index 694efb8..b3a69df 100644
--- a/src/main/java/org/apache/maven/plugins/artifact/buildinfo/ReferenceBuildinfoUtil.java
+++ b/src/main/java/org/apache/maven/plugins/artifact/buildinfo/ReferenceBuildinfoUtil.java
@@ -102,7 +102,7 @@ class ReferenceBuildinfoUtil {
File downloadOrCreateReferenceBuildinfo(
RemoteRepository repo, MavenProject project, File buildinfoFile, boolean mono)
throws MojoExecutionException {
- File referenceBuildinfo = downloadReferenceBuildinfo(repo, project);
+ File referenceBuildinfo = downloadReferenceBuildinfo(repo, project, buildinfoFile);
if (referenceBuildinfo != null) {
log.warn("dropping downloaded reference buildinfo because it may be generated"
@@ -190,7 +190,7 @@ class ReferenceBuildinfoUtil {
throw new MojoExecutionException("Write error to " + referenceBuildinfo);
}
- log.info("Minimal buildinfo generated from downloaded artifacts: " + referenceBuildinfo);
+ log.debug("Minimal buildinfo generated from downloaded artifacts: " + referenceBuildinfo);
}
} catch (IOException e) {
throw new MojoExecutionException("Error creating file " + referenceBuildinfo, e);
@@ -252,18 +252,20 @@ class ReferenceBuildinfoUtil {
return null;
}
- private File downloadReferenceBuildinfo(RemoteRepository repo, MavenProject project) throws MojoExecutionException {
+ private File downloadReferenceBuildinfo(RemoteRepository repo, MavenProject project, File buildinfoFile)
+ throws MojoExecutionException {
Artifact buildinfo = new DefaultArtifact(
project.getGroupId(), project.getArtifactId(), null, "buildinfo", project.getVersion());
try {
File file = downloadReference(repo, buildinfo);
- log.info("Reference buildinfo file found, copied to " + file);
+ log.info("Reference buildinfo file found in repo, copied to " + file);
return file;
} catch (ArtifactResolutionException e) {
- log.info("Reference buildinfo file not found: "
- + "it will be generated from downloaded reference artifacts");
+ log.info("Reference buildinfo file not found in repo: "
+ + "it will be generated from downloaded reference artifacts to "
+ + new File(referenceDir, buildinfoFile.getName()));
}
return null;