summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAreli Fuss <af732p@att.com>2017-09-07 10:33:10 +0300
committerAreli Fuss <af732p@att.com>2017-09-07 10:33:10 +0300
commitf11fcc728e2a9fd4b1db99685e7f50379d5aec4f (patch)
treef709a04b042bb5fa4dd81d348497ad82e8efa345
parent61385dfaf8ec71fd1f8d099134dcae1ec3cb1060 (diff)
Update Pom support deploy
Add nexus-staging-maven-plugin Add oparent project as Parent Change-Id: I7a3c9d9438bc52734efe7a6af187c949bb5f5ed2 Issue-Id: SDC-245 Signed-off-by: Areli Fuss <af732p@att.com>
-rw-r--r--pom.xml53
1 files changed, 38 insertions, 15 deletions
diff --git a/pom.xml b/pom.xml
index 9a927ac..8d18dc5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,18 +1,22 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.onap.oparent</groupId>
+ <artifactId>oparent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+
<groupId>sdc.att.app</groupId>
<artifactId>sdc_docker_baseline</artifactId>
<packaging>jar</packaging>
- <version>1.0.0</version>
+ <version>1.0.0-SNAPSHOT</version>
<name>sdc_docker_baseline</name>
<url>http://maven.apache.org</url>
<properties>
<!--nexus-->
- <nexus.proxy>https://nexus.onap.org</nexus.proxy>
- <sitePath>/content/sites/site/org/openecomp/sdc/${project.version}</sitePath>
- <staging.profile.id>176c31dfe190a</staging.profile.id>
+ <sitePath>/content/sites/site/org/openecomp/sdc/${project.artifactId}/${project.version}</sitePath>
<!--maven-->
<timestamp>${maven.build.timestamp}</timestamp>
<maven.build.timestamp.format>yyyy.MM.dd.HH.mm</maven.build.timestamp.format>
@@ -20,9 +24,21 @@
<docker.tag>${project.version}-${timestamp}</docker.tag>
<docker.latest.tag>${project.version}-latest</docker.latest.tag>
</properties>
+
<build>
<plugins>
<plugin>
+ <groupId>org.sonatype.plugins</groupId>
+ <artifactId>nexus-staging-maven-plugin</artifactId>
+ <version>1.6.7</version>
+ <extensions>true</extensions>
+ <configuration>
+ <nexusUrl>${onap.nexus.url}</nexusUrl>
+ <stagingProfileId>176c31dfe190a</stagingProfileId>
+ <serverId>ecomp-staging</serverId>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.15.1</version>
@@ -145,19 +161,26 @@
</plugins>
</build>
<distributionManagement>
- <repository>
- <id>ecomp-releases</id>
- <name>Release Repository</name>
- <url>${nexus.proxy}/content/repositories/releases/</url>
- </repository>
- <snapshotRepository>
- <id>ecomp-snapshots</id>
- <name>Snapshot Repository</name>
- <url>${nexus.proxy}/content/repositories/snapshots/</url>
- </snapshotRepository>
<site>
<id>ecomp-site</id>
- <url>dav:${nexus.proxy}${sitePath}</url>
+ <url>dav:${onap.nexus.url}${sitePath}</url>
</site>
</distributionManagement>
+ <repositories>
+ <repository>
+ <id>ecomp-releases</id>
+ <name>ECOMP Release Repository</name>
+ <url>${onap.nexus.url}/content/repositories/releases/</url>
+ </repository>
+ <repository>
+ <id>ecomp-snapshots</id>
+ <name>ECOMP Snapshot Repository</name>
+ <url>${onap.nexus.url}/content/repositories/snapshots/</url>
+ </repository>
+ <repository>
+ <id>ecomp-staging</id>
+ <name>ECOMP Staging Repository</name>
+ <url>${onap.nexus.url}/content/repositories/staging/</url>
+ </repository>
+ </repositories>
</project>