Update dependencies to eliminate vulnerabilities 92/140692/1
authoregernug <gerard.nugent@est.tech>
Mon, 14 Apr 2025 15:50:26 +0000 (16:50 +0100)
committeregernug <gerard.nugent@est.tech>
Mon, 14 Apr 2025 15:50:26 +0000 (16:50 +0100)
-Updated json-smart
-Update spotbugs
-Fixes for new spotbugs SE_NO_SERIALVERSIONID bug
-Deleted fixbugs dependency as it is obsolete

Issue-ID: CPS-89

Change-Id: I8f33e9c66e5243c2b5c2079267c184af9c0dcd80
Signed-off-by: egernug <gerard.nugent@est.tech>
dmi-service/pom.xml
docs/api/swagger/openapi.yaml

index 93ebe48..44dadd7 100644 (file)
         <checkstyle.config.location>${project.basedir}</checkstyle.config.location>
 
         <!-- Global properties for version management -->
-        <bug.pattern.version>1.5.0</bug.pattern.version>
         <gmavenplus.plugin.version>4.0.1</gmavenplus.plugin.version>
         <maven.deploy.plugin.version>3.1.2</maven.deploy.plugin.version>
         <maven.surefire.plugin.version>3.3.1</maven.surefire.plugin.version>
         <openapi.generator.maven.plugin.version>6.6.0</openapi.generator.maven.plugin.version>
         <sonar.version>4.0.0.4121</sonar.version>
-        <spring.boot.maven.plugin.version>3.4.1</spring.boot.maven.plugin.version>
-        <spotbugs.maven.plugin.version>4.4.2</spotbugs.maven.plugin.version>
+        <spring.boot.maven.plugin.version>3.4.4</spring.boot.maven.plugin.version>
+        <spotbugs.maven.plugin.version>4.7.3.0</spotbugs.maven.plugin.version>
         <maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
 
         <!-- Code Coverage Configuration -->
@@ -69,7 +68,7 @@
             <dependency>
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-dependencies</artifactId>
-                <version>3.4.1</version>
+                <version>${spring.boot.maven.plugin.version}</version>
                 <type>pom</type>
                 <scope>import</scope>
             </dependency>
             <dependency>
                 <groupId>net.minidev</groupId>
                 <artifactId>json-smart</artifactId>
-                <version>2.5.0</version>
+                <version>2.5.2</version>
             </dependency>
             <dependency>
                 <groupId>org.apache.httpcomponents</groupId>
                                 <useSpringBoot3>true</useSpringBoot3>
                                 <openApiNullable>false</openApiNullable>
                                 <skipDefaultInterface>true</skipDefaultInterface>
+                                <serializableModel>true</serializableModel>
                             </configOptions>
                         </configuration>
                     </execution>
                                 <useSpringBoot3>true</useSpringBoot3>
                                 <openApiNullable>false</openApiNullable>
                                 <skipDefaultInterface>true</skipDefaultInterface>
+                                <serializableModel>true</serializableModel>
                             </configOptions>
                         </configuration>
                     </execution>
                     </dependency>
                 </dependencies>
                 <configuration>
-                    <plugins>
-                        <plugin>
-                            <groupId>jp.skypencil.findbugs.slf4j</groupId>
-                            <artifactId>bug-pattern</artifactId>
-                            <version>${bug.pattern.version}</version>
-                        </plugin>
-                    </plugins>
                     <effort>Max</effort>
                     <threshold>Low</threshold>
                     <failOnError>true</failOnError>
                     <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
-                    <addSourceDirs>true</addSourceDirs>
+                    <addSources>true</addSources>
                     <xmlOutput>true</xmlOutput>
                     <xmlOutputDirectory>${basedir}/target/spotbugs</xmlOutputDirectory>
                 </configuration>
index fcc2302..ef3ccae 100644 (file)
@@ -181,7 +181,7 @@ paths:
         name: resourceIdentifier
         required: true
         schema:
-          example: '/ManagedElement=NRNode1/GNBDUFunction=1'
+          example: /ManagedElement=NRNode1/GNBDUFunction=1
           type: string
       - description: "options parameter in query, it is mandatory to wrap key(s)=value(s)\
           \ in parenthesis'()'."
@@ -339,7 +339,7 @@ components:
       name: resourceIdentifier
       required: true
       schema:
-        example: '/ManagedElement=NRNode1/GNBDUFunction=1'
+        example: /ManagedElement=NRNode1/GNBDUFunction=1
         type: string
     optionsParamInQuery:
       description: "options parameter in query, it is mandatory to wrap key(s)=value(s)\
@@ -637,7 +637,7 @@ components:
       type: object
     DataOperationRequest:
       example:
-        resourceIdentifier: '/ManagedElement=NRNode1/GNBDUFunction=1'
+        resourceIdentifier: /ManagedElement=NRNode1/GNBDUFunction=1
         datastore: ncmp-datastore:passthrough-operational
         options: (fields=NRCellDU/attributes/cellLocalId)
         operationId: "12"
@@ -669,7 +669,7 @@ components:
           example: (fields=NRCellDU/attributes/cellLocalId)
           type: string
         resourceIdentifier:
-          example: '/ManagedElement=NRNode1/GNBDUFunction=1'
+          example: /ManagedElement=NRNode1/GNBDUFunction=1
           type: string
         cmHandles:
           items: