Using properties for nexus server definition 89/3289/1
authorPatrick Brady <pb071s@att.com>
Mon, 10 Apr 2017 19:50:37 +0000 (12:50 -0700)
committerPatrick Brady <pb071s@att.com>
Mon, 10 Apr 2017 19:50:45 +0000 (12:50 -0700)
Change-Id: I85f8d5c2809835b4acdfb613310475bb6365cadb
Signed-off-by: Patrick Brady <pb071s@att.com>
pom.xml

diff --git a/pom.xml b/pom.xml
index 8613971..0582931 100644 (file)
--- a/pom.xml
+++ b/pom.xml
     <description>The APP-C component contains SDNC Docker Image, and installs APPC/SDNC components on top.</description>
 
     <properties>
-        <nexusproxy>https://nexus.onap.org</nexusproxy>
-        <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
-        <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
-        <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
+        <!-- NEXUS URLS -->
+        <openecomp.nexus.host>nexus.onap.org</openecomp.nexus.host>
+        <openecomp.nexus.url>https://${openecomp.nexus.host}/content</openecomp.nexus.url>
+        <openecomp.nexus.snapshot-url>${openecomp.nexus.url}/repositories/snapshots/</openecomp.nexus.snapshot-url>
+        <openecomp.nexus.release-url>${openecomp.nexus.url}/repositories/releases/</openecomp.nexus.release-url>
     </properties>
 
     <!-- ================================================================================== -->
             <url>http://maven.restlet.com</url>
         </pluginRepository>
     </pluginRepositories>
-    <repositories>
-        <repository>
-            <id>ecomp-staging</id>
-            <name>ecomp Staging Repository</name>
-            <url>${nexusproxy}/${stagingNexusPath}</url>
-        </repository>
-    </repositories>
     <build>
         <plugins>
             <!--maven staging plugin-->
@@ -51,7 +45,7 @@
                     <version>1.6.7</version>
                     <extensions>true</extensions>
                     <configuration>
-                        <nexusUrl>${nexusproxy}</nexusUrl>
+                        <nexusUrl>https://${openecomp.nexus.host}</nexusUrl>
                         <stagingProfileId>176c31dfe190a</stagingProfileId>
                         <serverId>ecomp-staging</serverId>
                     </configuration>