From ec215f40d772e889d046ea9c97c5950d3c7a697c Mon Sep 17 00:00:00 2001
From: RIHTARSIC Joze <joze.rihtarsic@ext.ec.europa.eu>
Date: Fri, 19 Jan 2024 06:40:45 +0100
Subject: [PATCH] Skip test modules for owasp validation

---
 domismp-tests/domismp-tests-api/pom.xml | 13 ++++++++++++-
 domismp-tests/domismp-tests-ui/pom.xml  | 11 +++++++++++
 pom.xml                                 |  2 +-
 3 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/domismp-tests/domismp-tests-api/pom.xml b/domismp-tests/domismp-tests-api/pom.xml
index a5c8b5640..587760e94 100644
--- a/domismp-tests/domismp-tests-api/pom.xml
+++ b/domismp-tests/domismp-tests-api/pom.xml
@@ -17,6 +17,8 @@
 
         <!-- the soap ui specific dependencies -->
         <plugin.soapui-maven-plugin.version>5.7.2</plugin.soapui-maven-plugin.version>
+        <plugin.maven-compiler-plugin.version>3.11.0</plugin.maven-compiler-plugin.version>
+        <plugin.dependency-check-maven.version>9.0.7</plugin.dependency-check-maven.version>
 
         <org.codehaus.groovy.version>2.9.2-01</org.codehaus.groovy.version>
         <org.codehaus.groovy.eclipse-batch.version>2.5.13-01</org.codehaus.groovy.eclipse-batch.version>
@@ -70,10 +72,19 @@
             </plugins>
         </pluginManagement>
         <plugins>
+            <plugin>
+                <groupId>org.owasp</groupId>
+                <artifactId>dependency-check-maven</artifactId>
+                <version>${plugin.dependency-check-maven.version}</version>
+                <configuration>
+                    <!-- skip running the plugin because it's a test module to avoid cluttering the smp results -->
+                    <skip>true</skip>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
-                <version>3.11.0</version>
+                <version>${plugin.maven-compiler-plugin.version}</version>
                 <configuration>
                     <compilerId>groovy-eclipse-compiler</compilerId>
                 </configuration>
diff --git a/domismp-tests/domismp-tests-ui/pom.xml b/domismp-tests/domismp-tests-ui/pom.xml
index 955ebc5f0..67ff57bd4 100644
--- a/domismp-tests/domismp-tests-ui/pom.xml
+++ b/domismp-tests/domismp-tests-ui/pom.xml
@@ -36,11 +36,22 @@
         <commons-io_version>2.15.0</commons-io_version>
         <!-- plugin versions-->
         <maven-surefire-plugin_version>3.2.2</maven-surefire-plugin_version>
+        <plugin.dependency-check-maven.version>9.0.7</plugin.dependency-check-maven.version>
         <maven-compiler-plugin>3.11.0</maven-compiler-plugin>
+
     </properties>
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.owasp</groupId>
+                <artifactId>dependency-check-maven</artifactId>
+                <version>${plugin.dependency-check-maven.version}</version>
+                <configuration>
+                    <!-- skip running the plugin because it's a test module to avoid cluttering the smp results -->
+                    <skip>true</skip>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
diff --git a/pom.xml b/pom.xml
index 353f20de9..f8a3ce98b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -57,7 +57,7 @@ See the Licence for the specific language governing permissions and limitations
         <bdmsl-api.version>4.3</bdmsl-api.version>
         <!-- plugin versions -->
         <maven-enforcer-plugin.version>3.4.1</maven-enforcer-plugin.version>
-        <plugin.dependency-check-maven.version>9.0.3</plugin.dependency-check-maven.version>
+        <plugin.dependency-check-maven.version>9.0.7</plugin.dependency-check-maven.version>
         <plugin.jacoco-maven-plugin.version>0.8.11</plugin.jacoco-maven-plugin.version>
         <plugin.license-maven-plugin.version>2.3.0</plugin.license-maven-plugin.version>
         <plugin.maven-antrun-plugin.version>3.1.0</plugin.maven-antrun-plugin.version>
-- 
GitLab