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

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

commit c439592f64bacbdc5564663c6cabecadf419edd7
Author: Andreas Dangel <adan...@apache.org>
AuthorDate: Fri May 19 18:43:35 2023 +0200

    Fix it MPMD-258-multiple-executions
    
    The logging "Analysis cache created" or "Analysis cache updated" is only 
logged in debug mode.
---
 src/it/MPMD-258-multiple-executions/invoker.properties | 2 +-
 src/it/MPMD-258-multiple-executions/verify.groovy      | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/it/MPMD-258-multiple-executions/invoker.properties 
b/src/it/MPMD-258-multiple-executions/invoker.properties
index 02b72c7..ea3955e 100644
--- a/src/it/MPMD-258-multiple-executions/invoker.properties
+++ b/src/it/MPMD-258-multiple-executions/invoker.properties
@@ -15,5 +15,5 @@
 # specific language governing permissions and limitations
 # under the License.
 
-invoker.goals = clean compile pmd:pmd
+invoker.goals = -X clean compile pmd:pmd
 invoker.maven.version = 3.1.0+
diff --git a/src/it/MPMD-258-multiple-executions/verify.groovy 
b/src/it/MPMD-258-multiple-executions/verify.groovy
index b6622b1..1925c67 100644
--- a/src/it/MPMD-258-multiple-executions/verify.groovy
+++ b/src/it/MPMD-258-multiple-executions/verify.groovy
@@ -21,7 +21,9 @@ File buildLog = new File( basedir, 'build.log' )
 assert buildLog.exists()
 
 // we have 2 modules and for each module this should be output once
+// note: this is only logged in debug mode by 
net.sourceforge.pmd.cache.FileAnalysisCache
 assert 2 == buildLog.text.count( "Analysis cache created" )
 
 // since we are running clean pmd:pmd, the cache is always created, never 
updated
+// note: this is only logged in debug mode by 
net.sourceforge.pmd.cache.FileAnalysisCache
 assert 0 == buildLog.text.count( "Analysis cache updated" )

Reply via email to