ArtifactBroker Java 11 Upgrade 73/111173/4
authorLukasz Rajewski <lukasz.rajewski@orange.com>
Tue, 11 Aug 2020 15:46:51 +0000 (17:46 +0200)
committerLukasz Rajewski <lukasz.rajewski@orange.com>
Thu, 13 Aug 2020 09:35:53 +0000 (11:35 +0200)
ArtifactBroker Java 11 Upgrade

Issue-ID: REQ-351
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I4d45eb08889da2352796f5d2fbddfe453fb009da

artifactbroker/main/pom.xml
artifactbroker/packages/docker/Dockerfile
artifactbroker/packages/docker/artifact-dist.sh
artifactbroker/packages/pom.xml
artifactbroker/pom.xml

index f4d6c61..afad215 100644 (file)
             <artifactId>multicloud-framework-artifactbroker-reception</artifactId>
             <version>${project.version}</version>
         </dependency>
+        <dependency>
+            <groupId>javax.xml.bind</groupId>
+            <artifactId>jaxb-api</artifactId>
+            <version>2.3.1</version>
+        </dependency>
     </dependencies>
 
     <build>
index 364acb9..d107dce 100644 (file)
@@ -1,4 +1,4 @@
-FROM alpine:3.9
+FROM adoptopenjdk/openjdk11:jre-11.0.8_10-alpine
 
 ARG HTTP_PROXY=${HTTP_PROXY}
 ARG HTTPS_PROXY=${HTTPS_PROXY}
@@ -16,7 +16,7 @@ ENV ARTIFACT_DISTRIBUTION_HOME=${ARTIFACT_HOME}/distribution
 EXPOSE 9014
 
 RUN apk add --no-cache --update busybox-extras bash nss procps coreutils findutils grep zip unzip \
-                                curl wget openssh openjdk8 maven jq httpie py-pip
+                                curl wget openssh maven jq httpie py-pip
 
 RUN addgroup -S onap && \
     adduser -S --shell /bin/bash -G onap onap
index 94c1dfc..1ab79c5 100644 (file)
@@ -19,7 +19,7 @@
 # ============LICENSE_END=========================================================
 #
 
-JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk/
+JAVA_HOME=/opt/java/openjdk
 ARTIFACT_DISTRIBUTION_HOME=/opt/app/distribution
 KEYSTORE="${ARTIFACT_HOME}/etc/ssl/policy-keystore"
 KEYSTORE_PASSWD="Pol1cy_0nap"
index 9290a97..067040c 100644 (file)
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-antrun-plugin</artifactId>
-                        <version>1.6</version>
+                        <version>3.0.0</version>
                         <executions>
                             <execution>
                                 <phase>install</phase>
index 67be674..4516ca2 100644 (file)
     </dependencies>
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <version>3.8.0</version>
+                <configuration>
+                    <release>11</release>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-enforcer-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>enforce-versions</id>
+                        <goals>
+                            <goal>enforce</goal>
+                        </goals>
+                        <configuration>
+                            <rules>
+                                <requireMavenVersion>
+                                    <version>3.0.5</version>
+                                </requireMavenVersion>
+                                <requireJavaVersion>
+                                    <version>11</version>
+                                </requireJavaVersion>
+                            </rules>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
             <plugin>
                 <groupId>org.jacoco</groupId>
                 <artifactId>jacoco-maven-plugin</artifactId>
                     </dependency>
                 </dependencies>
             </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>versions-maven-plugin</artifactId>
+                <configuration>
+                    <generateBackupPoms>false</generateBackupPoms>
+                </configuration>
+            </plugin>
         </plugins>
         <pluginManagement>
             <plugins>