Add missing POM property nexusproxy 39/17239/1
authorChristopher Lott (cl778h) <clott@research.att.com>
Wed, 4 Oct 2017 15:18:13 +0000 (11:18 -0400)
committerChristopher Lott (cl778h) <clott@research.att.com>
Wed, 4 Oct 2017 15:18:41 +0000 (11:18 -0400)
Issue: PORTAL-53
Change-Id: I87d995c734e1ec101c560d6d3eff68335ed0afeb
Signed-off-by: Christopher Lott (cl778h) <clott@research.att.com>
ecomp-sdk/pom.xml

index d02aa72..c9664d0 100644 (file)
@@ -3,7 +3,7 @@
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
 
-       <!-- OParent provides audits, distribution management, etc. -->
+       <!-- OParent provides audits etc. -->
        <parent>
                <groupId>org.onap.oparent</groupId>
                <artifactId>oparent</artifactId>
                <springframework.version>4.2.0.RELEASE</springframework.version>
                <hibernate.version>4.3.11.Final</hibernate.version>
                <skiptests>true</skiptests>
+               <nexusproxy>https://nexus.onap.org</nexusproxy>
+               <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
+               <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
+               <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
        </properties>
 
-        <!-- Specify the repositories here to avoid coordination of ~/.m2/settings.xml 
-                files among all developers. Also use values (not properties) so oparent can 
-                be resolved. -->
-        <repositories>
-                <repository>
-                        <id>onap-releases</id>
-                        <name>ONAP - Release Repository</name>
-                        <url>https://nexus.onap.org/content/repositories/releases</url>
-                </repository>
-                <repository>
-                        <id>onap-staging</id>
-                        <name>ONAP - Staging Repository</name>
-                        <url>https://nexus.onap.org/content/repositories/staging</url>
-                </repository>
-                <repository>
-                        <id>onap-snapshots</id>
-                        <name>ONAP - Snapshot Repository</name>
-                        <url>https://nexus.onap.org/content/repositories/snapshots</url>
-                </repository>
-                <repository>
-                        <id>onap-public</id>
-                        <url>https://nexus.onap.org/content/groups/public</url>
-                </repository>
-        </repositories>
-
-        <!-- Specify the repositories here to avoid coordination of ~/.m2/settings.xml 
-                files among all developers. -->
-        <pluginRepositories>
-                <pluginRepository>
-                        <id>onap-plugin-release</id>
-                        <url>https://nexus.onap.org/content/repositories/releases/</url>
-                </pluginRepository>
-                <pluginRepository>
-                        <id>onap-plugin-staging</id>
-                        <url>https://nexus.onap.org/content/repositories/staging/</url>
-                </pluginRepository>
-                <pluginRepository>
-                        <id>onap-plugin-snapshots</id>
-                        <url>https://nexus.onap.org/content/repositories/snapshots/</url>
-                </pluginRepository>
-        </pluginRepositories>
+       <!-- Specify the repositories here to avoid coordination of ~/.m2/settings.xml 
+               files among developers. Use values (not properties) so oparent can 
+               be resolved. -->
+       <repositories>
+               <repository>
+                       <id>onap-releases</id>
+                       <name>ONAP - Release Repository</name>
+                       <url>https://nexus.onap.org/content/repositories/releases</url>
+               </repository>
+               <repository>
+                       <id>onap-staging</id>
+                       <name>ONAP - Staging Repository</name>
+                       <url>https://nexus.onap.org/content/repositories/staging</url>
+               </repository>
+               <repository>
+                       <id>onap-snapshots</id>
+                       <name>ONAP - Snapshot Repository</name>
+                       <url>https://nexus.onap.org/content/repositories/snapshots</url>
+               </repository>
+               <repository>
+                       <id>onap-public</id>
+                       <url>https://nexus.onap.org/content/groups/public</url>
+               </repository>
+       </repositories>
+
+       <!-- Specify the repositories here to avoid coordination of ~/.m2/settings.xml 
+               files among all developers. Can use properties. -->
+       <pluginRepositories>
+               <pluginRepository>
+                       <id>onap-plugin-release</id>
+                       <url>${nexusproxy}/${releaseNexusPath}</url>
+               </pluginRepository>
+               <pluginRepository>
+                       <id>onap-plugin-staging</id>
+                       <url>${nexusproxy}/${stagingNexusPath}/</url>
+               </pluginRepository>
+               <pluginRepository>
+                       <id>onap-plugin-snapshots</id>
+                       <url>${nexusproxy}/${snapshotNexusPath}/</url>
+               </pluginRepository>
+       </pluginRepositories>
 
        <profiles>
                <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
 
                <pluginManagement>
                        <plugins>
-                               <!-- Silence Eclipse/m2e complaints about checkstyle plugin brought in by OParent -->
+                               <!-- Silence Eclipse/m2e complaints about checkstyle plugin brought in 
+                                       by OParent -->
                                <plugin>
                                        <groupId>org.eclipse.m2e</groupId>
                                        <artifactId>lifecycle-mapping</artifactId>
                        <plugin>
                                <groupId>org.sonatype.plugins</groupId>
                                <artifactId>nexus-staging-maven-plugin</artifactId>
-                               <version>1.6.7</version>
+                               <!-- defined in oparent <version>1.6.7</version> -->
                                <extensions>true</extensions>
                                <configuration>
                                        <nexusUrl>${nexusproxy}</nexusUrl>
        </build>
 
        <distributionManagement>
-               <!-- Override the OParent sections which use id "ecomp-releases" etc.
-                    The ids below must match .m2/settings.xml/servers/server/id -->
+               <!-- Override the OParent sections which use id "ecomp-releases" etc. The 
+                       ids below must match .m2/settings.xml/servers/server/id -->
                <repository>
                        <id>releases</id>
                        <name>OpenECOMP - Release Repository</name>
                <!-- Javadocs -->
                <site>
                        <id>ecomp-site</id>
-                       <url>dav:https://nexus.onap.org/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</url>
+                       <url>dav:${nexusproxy}/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</url>
                </site>
        </distributionManagement>