graphadmin uses wrong metrics-core dependency version 15/138315/4
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Tue, 25 Jun 2024 06:51:58 +0000 (08:51 +0200)
committerFiete Ostkamp <fiete.ostkamp@telekom.de>
Tue, 25 Jun 2024 07:37:03 +0000 (07:37 +0000)
- downgrade metrics core dependency to fix classnotfoundexception that is thrown by janusgraph

Issue-ID: AAI-3895
Change-Id: I8562326c0a8a5eb910b2616f185e3c2c64183f6c
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
pom.xml

diff --git a/pom.xml b/pom.xml
index 1a08548..55c2032 100755 (executable)
--- a/pom.xml
+++ b/pom.xml
@@ -55,7 +55,7 @@
         <docker.push.registry>localhost:5000</docker.push.registry>
         <aai.docker.version>1.0.0</aai.docker.version>
         <aai.schema.service.version>1.12.4</aai.schema.service.version>
-        <aai.common.version>1.14.2-SNAPSHOT</aai.common.version>
+        <aai.common.version>1.14.2</aai.common.version>
         <aai.build.directory>${project.build.directory}/${project.artifactId}-${project.version}-build/
         </aai.build.directory>
         <aai.docker.namespace>onap</aai.docker.namespace>
                 <artifactId>guava</artifactId>
                 <version>25.0-jre</version>
             </dependency>
+            <!-- https://docs.datastax.com/en/developer/java-driver/3.5/manual/metrics/index.html#metrics-4-compatibility -->
+             <!-- remove this for janusgraph >= 0.6.0 -->
+            <dependency>
+                <groupId>io.dropwizard.metrics</groupId>
+                <artifactId>metrics-core</artifactId>
+                <version>3.2.6</version>
+            </dependency>
         </dependencies>
     </dependencyManagement>
     <dependencies>
             <groupId>org.onap.aai.aai-common</groupId>
             <artifactId>aai-core</artifactId>
             <exclusions>
+                <exclusion>
+                    <groupId>io.dropwizard.metrics</groupId>
+                    <artifactId>metrics-jmx</artifactId>
+                </exclusion>
                 <exclusion>
                     <groupId>org.onap.aai.aai-common</groupId>
                     <artifactId>aai-aaf-auth</artifactId>