Uplift code base to java21 21/142721/1
authoradheli.tavares <adheli.tavares@est.tech>
Tue, 9 Dec 2025 16:19:31 +0000 (16:19 +0000)
committeradheli.tavares <adheli.tavares@est.tech>
Tue, 9 Dec 2025 16:19:31 +0000 (16:19 +0000)
Issue-ID: POLICY-5466
Change-Id: I499dc59eea867531d1f197c8df19a825c4346da5
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
pom.xml

diff --git a/pom.xml b/pom.xml
index 14a3876..3f76b1e 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -40,6 +40,9 @@
     <packaging>pom</packaging>
 
     <properties>
+        <surefireArgLine>
+            --add-opens java.base/java.lang=ALL-UNNAMED
+        </surefireArgLine>
         <!-- Project path properties -->
         <nexusproxy>https://nexus.onap.org</nexusproxy>
         <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
                     <skip/>
                 </configuration>
             </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-compiler-plugin</artifactId>
-                <configuration>
-                    <encoding>${project.build.sourceEncoding}</encoding>
-                    <release>11</release>
-                </configuration>
-            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>