diff --git a/cmd/mavenExecuteStaticCodeChecks.go b/cmd/mavenExecuteStaticCodeChecks.go index 866cf0dcd..684731286 100644 --- a/cmd/mavenExecuteStaticCodeChecks.go +++ b/cmd/mavenExecuteStaticCodeChecks.go @@ -100,7 +100,7 @@ func getPmdMavenParameters(config *mavenExecuteStaticCodeChecksOptions) *maven.E mavenOptions := maven.ExecuteOptions{ // check goal executes pmd goal first and fails the build if any violations were found - Goals: []string{"org.apache.maven.plugins:maven-pmd-plugin:3.13.0:check"}, + Goals: []string{"org.apache.maven.plugins:maven-pmd-plugin:3.14.0:check"}, Defines: defines, } diff --git a/cmd/mavenExecuteStaticCodeChecks_test.go b/cmd/mavenExecuteStaticCodeChecks_test.go index dce2a94a3..76252577a 100644 --- a/cmd/mavenExecuteStaticCodeChecks_test.go +++ b/cmd/mavenExecuteStaticCodeChecks_test.go @@ -38,7 +38,7 @@ func TestRunMavenStaticCodeChecks(t *testing.T) { "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn", "--batch-mode", "com.github.spotbugs:spotbugs-maven-plugin:4.1.4:check", - "org.apache.maven.plugins:maven-pmd-plugin:3.13.0:check", + "org.apache.maven.plugins:maven-pmd-plugin:3.14.0:check", }, } @@ -74,7 +74,7 @@ func TestGetPmdMavenParameters(t *testing.T) { PmdMaxAllowedViolations: 5, } expected := maven.ExecuteOptions{ - Goals: []string{"org.apache.maven.plugins:maven-pmd-plugin:3.13.0:check"}, + Goals: []string{"org.apache.maven.plugins:maven-pmd-plugin:3.14.0:check"}, Defines: []string{"-Dpmd.maxAllowedViolations=5", "-Dpmd.failurePriority=2"}, } @@ -87,7 +87,7 @@ func TestGetPmdMavenParameters(t *testing.T) { PmdMaxAllowedViolations: 5, } expected := maven.ExecuteOptions{ - Goals: []string{"org.apache.maven.plugins:maven-pmd-plugin:3.13.0:check"}, + Goals: []string{"org.apache.maven.plugins:maven-pmd-plugin:3.14.0:check"}, Defines: []string{"-Dpmd.maxAllowedViolations=5"}, } @@ -96,7 +96,7 @@ func TestGetPmdMavenParameters(t *testing.T) { t.Run("should return maven goal only", func(t *testing.T) { config := mavenExecuteStaticCodeChecksOptions{} expected := maven.ExecuteOptions{ - Goals: []string{"org.apache.maven.plugins:maven-pmd-plugin:3.13.0:check"}} + Goals: []string{"org.apache.maven.plugins:maven-pmd-plugin:3.14.0:check"}} assert.Equal(t, &expected, getPmdMavenParameters(&config)) })