summaryrefslogtreecommitdiffstats
path: root/prh-app-server/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'prh-app-server/pom.xml')
-rw-r--r--prh-app-server/pom.xml48
1 files changed, 41 insertions, 7 deletions
diff --git a/prh-app-server/pom.xml b/prh-app-server/pom.xml
index 8d07fdd6..7da9ac16 100644
--- a/prh-app-server/pom.xml
+++ b/prh-app-server/pom.xml
@@ -33,8 +33,7 @@
<packaging>jar</packaging>
<properties>
<maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
- <onap.nexus.dockerregistry.daily>${env.MVN_DOCKERREGISTRY_DAILY}
- </onap.nexus.dockerregistry.daily>
+ <project.fatJar.finalName>prh-app-server</project.fatJar.finalName>
</properties>
<build>
<plugins>
@@ -53,7 +52,7 @@
</execution>
</executions>
<configuration>
- <finalName>prh-app-server</finalName>
+ <finalName>${project.fatJar.finalName}</finalName>
<mainClass>org.onap.dcaegen2.services.prh.MainApp</mainClass>
</configuration>
</plugin>
@@ -62,25 +61,50 @@
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>1.0.0</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>build</goal>
+ </goals>
+ <phase>package</phase>
+ </execution>
+ </executions>
<configuration>
<imageName>
${onap.nexus.dockerregistry.daily}/onap/${project.groupId}.${project.artifactId}
</imageName>
- <dockerDirectory>docker</dockerDirectory>
+ <baseImage>openjdk:8-jre-alpine</baseImage>
+ <entryPoint>["java", "-jar", "/opt/${project.fatJar.finalName}.jar"]</entryPoint>
<resources>
<resource>
- <targetPath>/</targetPath>
+ <targetPath>/opt</targetPath>
<directory>${project.build.directory}</directory>
- <include>${project.build.finalName}.jar</include>
+ <include>${project.fatJar.finalName}.jar</include>
</resource>
</resources>
+ <exposes>
+ <expose>8100</expose>
+ </exposes>
<imageTags>
- <imageTag>${project.version}-${maven.build.timestamp}</imageTag>
+ <imageTag>${project.version}-SNAPSHOT-${maven.build.timestamp}Z</imageTag>
+ <imageTag>${project.version}</imageTag>
<imageTag>latest</imageTag>
</imageTags>
<serverId>${onap.nexus.dockerregistry.daily}</serverId>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.sonatype.plugins</groupId>
+ <artifactId>nexus-staging-maven-plugin</artifactId>
+ <version>1.6.7</version>
+ <extensions>true</extensions>
+ <configuration>
+ <serverId>ecomp-staging</serverId>
+ <nexusUrl>${nexusproxy}</nexusUrl>
+ <stagingProfileId>176c31dfe190a</stagingProfileId>
+ </configuration>
+ </plugin>
+
</plugins>
</build>
@@ -159,6 +183,16 @@
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.onap.dcaegen2.services.prh</groupId>
+ <artifactId>prh-aai-client</artifactId>
+ <version>${parent.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.onap.dcaegen2.services.prh</groupId>
+ <artifactId>prh-dmaap-client</artifactId>
+ <version>${parent.version}</version>
+ </dependency>
</dependencies>
<dependencyManagement>