Add missing library 18/110118/1 3.5.1
authorBogumil Zebek <bogumil.zebek@nokia.com>
Mon, 13 Jul 2020 08:30:21 +0000 (10:30 +0200)
committerZebek Bogumil <bogumil.zebek@nokia.com>
Mon, 13 Jul 2020 08:30:21 +0000 (10:30 +0200)
After upgrade to java 11 two problems occurred:
- missing dependency to javax.activation.activation
- logger has a problem with access to log files

Issue-ID: DCAEGEN2-2287
Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
Change-Id: I03fb683f195f1898ec31f2726420eb27be7d55bb

CHANGELOG.md
pom.xml
version.properties

index a69da9b..5ebbd50 100644 (file)
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
 
 The version in the brackets represents the version of DCAE inventory and not the ONAP DCAE version.
 
+## [3.5.1]
+
+* Add dependency to javax.activation.activation library
+* Fix application access to log files 
+
 ## [3.5.0]
 
 * Upgrade java from 8 to 11
diff --git a/pom.xml b/pom.xml
index 9e68e91..6250d03 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -30,7 +30,7 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
 
     <groupId>org.onap.dcaegen2.platform</groupId>
     <artifactId>inventory-api</artifactId>
-    <version>3.5.0-SNAPSHOT</version>
+    <version>3.5.1-SNAPSHOT</version>
     <name>dcaegen2-platform-inventory-api</name>
     <!--internal <version>3.0.0</version>-->
 
@@ -49,6 +49,7 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
         <releases.path>content/repositories/releases/</releases.path>
         <site.path>content/sites/site/org/onap/dcae/dcae-inventory/${project.artifactId}/${project.version}/</site.path>
         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
+        <activation.version>1.1.1</activation.version>
     </properties>
 
     <pluginRepositories>
@@ -213,6 +214,11 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
             <artifactId>jaxb-api</artifactId>
             <version>2.3.0</version>
         </dependency>
+        <dependency>
+            <groupId>javax.activation</groupId>
+            <artifactId>activation</artifactId>
+            <version>${activation.version}</version>
+        </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
@@ -362,7 +368,7 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
                     <dependency>
                         <groupId>javax.activation</groupId>
                         <artifactId>activation</artifactId>
-                        <version>1.1.1</version>
+                        <version>${activation.version}</version>
                     </dependency>
                 </dependencies>
                 <configuration>
@@ -372,6 +378,9 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
                     <runs>
                         <run>useradd -r -U inventory</run>
                         <run>mkdir -p /opt/logs</run>
+                        <run>touch /opt/logs/metrics.log</run>
+                        <run>touch /opt/logs/debug.log</run>
+                        <run>touch /opt/logs/error.log</run>
                         <run>chown -R inventory:inventory /opt</run>
                     </runs>
                     <entryPoint>["java", "--add-opens", "java.base/java.lang=ALL-UNNAMED", "-jar", "/opt/${project.build.finalName}.jar", "server"]</entryPoint>
index 7a03c1a..f7ed100 100644 (file)
@@ -3,7 +3,7 @@
 # because they are used in Jenkins, whose plug-in doesn't support
 major=3
 minor=5
-patch=0
+patch=1
 base_version=${major}.${minor}.${patch}
 # Release must be completed with git revision # in Jenkins