You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mb...@apache.org on 2026/09/21 07:17:32 UTC

(maven-pmd-plugin) branch master updated: Reduce "no files found" log level to INFO and skip execution (#739)

This is an automated email from the ASF dual-hosted git repository.

Bukama pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 3bc52fd  Reduce "no files found" log level to INFO and skip execution (#739)
3bc52fd is described below

commit 3bc52fded5209ab4109a2a5ed3bc916bbc097bfe
Author: Matthias Bünger <Bu...@users.noreply.github.com>
AuthorDate: Mon Sep 21 09:17:26 2026 +0200

    Reduce "no files found" log level to INFO and skip execution (#739)
    
    closes #735
---
 src/main/java/org/apache/maven/plugins/pmd/PmdReport.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java
index 7188eea..c3cf9d0 100644
--- a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java
+++ b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java
@@ -379,8 +379,10 @@ public class PmdReport extends AbstractPmdReport {
             filesToProcess = getFilesToProcess();
 
             if (filesToProcess.isEmpty() && !"java".equals(language)) {
-                getLog().warn("No files found to process. Did you forget to add additional source directories?"
+                getLog().info("No files found to process. Did you forget to add additional source directories?"
                         + " (see also build-helper-maven-plugin)");
+                // When there are no files found to process, we do not need to process
+                return;
             }
         } catch (IOException e) {
             throw new MavenReportException("Can't get file list", e);