From 473b0176aa8965913c094671e5ea88131977b2c5 Mon Sep 17 00:00:00 2001 From: Elliotte Rusty Harold Date: Sat, 13 Jul 2024 07:48:58 -0400 Subject: [PATCH] Make the mojo much less noisy --- .../org/apache/maven/plugins/shade/mojo/ShadeMojo.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java b/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java index 4a23ba5f..115cab2b 100644 --- a/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java +++ b/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java @@ -766,7 +766,7 @@ private void processArtifactSelectors( continue; } - getLog().info("Including " + artifact.getId() + " in the shaded jar."); + getLog().debug("Including " + artifact.getId() + " in the shaded jar."); artifacts.add(artifact.getFile()); artifactIds.add(getId(artifact)); @@ -804,10 +804,10 @@ private void processArtifactSelectors( } for (String artifactId : excludedArtifacts) { - getLog().info("Excluding " + artifactId + " from the shaded jar."); + getLog().debug("Excluding " + artifactId + " from the shaded jar."); } for (String artifactId : pomArtifacts) { - getLog().info("Skipping pom dependency " + artifactId + " in the shaded jar."); + getLog().debug("Skipping pom dependency " + artifactId + " in the shaded jar."); } for (String artifactId : emptySourceArtifacts) { getLog().warn("Skipping empty source jar " + artifactId + "."); @@ -826,7 +826,7 @@ private boolean invalidMainArtifact() { } private void replaceFile(File oldFile, File newFile) throws MojoExecutionException { - getLog().info("Replacing " + oldFile + " with " + newFile); + getLog().debug("Replacing " + oldFile + " with " + newFile); File origFile = new File(outputDirectory, "original-" + oldFile.getName()); if (oldFile.exists() && !oldFile.renameTo(origFile)) { @@ -969,7 +969,7 @@ private List getFilters() throws MojoExecutionException { } if (jars.isEmpty()) { - getLog().info("No artifact matching filter " + filter.getArtifact()); + getLog().debug("No artifact matching filter " + filter.getArtifact()); continue; }