Skip to content

Commit

Permalink
Make the mojo much less noisy (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo authored Jul 13, 2024
1 parent 267e19a commit 906a7ce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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 + ".");
Expand All @@ -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)) {
Expand Down Expand Up @@ -969,7 +969,7 @@ private List<Filter> getFilters() throws MojoExecutionException {
}

if (jars.isEmpty()) {
getLog().info("No artifact matching filter " + filter.getArtifact());
getLog().debug("No artifact matching filter " + filter.getArtifact());

continue;
}
Expand Down

0 comments on commit 906a7ce

Please sign in to comment.