onap nexus url change 35/3135/1
authorManoop Talasila <talasila@research.att.com>
Thu, 6 Apr 2017 20:13:46 +0000 (16:13 -0400)
committerManoop Talasila <talasila@research.att.com>
Thu, 6 Apr 2017 20:14:06 +0000 (16:14 -0400)
Change-Id: I412a60fda4ba24acb81d1928880be21c314b73ef
Signed-off-by: Manoop Talasila <talasila@research.att.com>
ecomp-portal-BE/pom.xml
ecomp-portal-FE/pom.xml
pom.xml

index 3a38ef5..7b2d0d4 100644 (file)
                <skiptests>false</skiptests>
                <sonar.exclusions>**.js</sonar.exclusions>
                <nexusproxy>https://nexus.onap.org</nexusproxy>
-               <sitePath>/content/sites/site/org/openecomp/portal/${project.version}</sitePath>
+               <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
+               <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
+               <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
+               <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
        </properties>
        
        <reporting>
                        <!-- Releases repository has ECOMP release artifacts -->
                        <id>ecomp-releases</id>
                        <name>OpenECOMP - Release Repository</name>
-                       <url>https://nexus.openecomp.org/content/repositories/releases/</url>
+                       <url>${nexusproxy}/${releaseNexusPath}</url>
                </repository>
                <repository>
                        <!-- Snapshots repository has ECOMP snapshot artifacts -->
                        <id>ecomp-snapshots</id>
                        <name>OpenECOMP - Snapshot Repository</name>
-                       <url>https://nexus.openecomp.org/content/repositories/snapshots/</url>
+                       <url>${nexusproxy}/${snapshotNexusPath}</url>
                </repository>
                <repository>
                        <!-- Staging repository has ECOMP staging artifacts -->
                        <id>ecomp-staging</id>
                        <name>OpenECOMP - Staging Repository</name>
-                       <url>https://nexus.openecomp.org/content/repositories/staging/</url>
+                       <url>${nexusproxy}/${stagingNexusPath}</url>
                </repository>
                <repository>
                        <!-- Snapshots repository has ECOMP snapshot artifacts -->
index 97283c0..f98cfac 100644 (file)
@@ -4,9 +4,53 @@
   <artifactId>ecomp-portal-FE</artifactId>
   <!-- Jenkins build process will append build number -->
   <version>1.0.0</version>
-  
+
+       <properties>
+               <nexusproxy>https://nexus.onap.org</nexusproxy>
+               <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
+       </properties>
+
+       <reporting>
+               <plugins>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-javadoc-plugin</artifactId>
+                               <version>2.10.4</version>
+                               <configuration>
+                                       <failOnError>false</failOnError>
+                                       <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
+                                       <docletArtifact>
+                                               <groupId>org.umlgraph</groupId>
+                                               <artifactId>umlgraph</artifactId>
+                                               <version>5.6</version>
+                                       </docletArtifact>
+                                       <additionalparam>-views</additionalparam>
+                                       <useStandardDocletOptions>true</useStandardDocletOptions>
+                               </configuration>
+                       </plugin>
+               </plugins>
+       </reporting>
+       <distributionManagement>
+               <site>
+                       <id>ecomp-site</id>
+                       <url>dav:${nexusproxy}${sitePath}</url>
+               </site>
+       </distributionManagement>
+
   <build>
          <plugins>
+                 <plugin>
+                         <groupId>org.apache.maven.plugins</groupId>
+                         <artifactId>maven-site-plugin</artifactId>
+                         <version>3.6</version>
+                         <dependencies>
+                                 <dependency>
+                                         <groupId>org.apache.maven.wagon</groupId>
+                                         <artifactId>wagon-webdav-jackrabbit</artifactId>
+                                         <version>2.10</version>
+                                 </dependency>
+                         </dependencies>
+                 </plugin>
                  <plugin>
                          <groupId>org.apache.maven.plugins</groupId>
                          <artifactId>maven-deploy-plugin</artifactId>
diff --git a/pom.xml b/pom.xml
index 59d2dd0..63e1913 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                <module>ecomp-portal-FE</module>
                <module>ecomp-portal-BE</module>
        </modules>
+
+       <properties>
+               <nexusproxy>https://nexus.onap.org</nexusproxy>
+               <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
+               <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
+               <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
+       </properties>
+
        <build>
                <plugins>
                        <plugin>
@@ -25,7 +33,7 @@
                                <version>1.6.7</version>
                                <extensions>true</extensions>
                                <configuration>
-                                       <nexusUrl>https://nexus.openecomp.org/</nexusUrl>
+                                       <nexusUrl>${nexusproxy}</nexusUrl>
                                        <stagingProfileId>176c31dfe190a</stagingProfileId>
                                        <serverId>ecomp-staging</serverId>
                                </configuration>
                <repository>
                        <id>ecomp-releases</id>
                        <name>OpenECOMP - Release Repository</name>
-                       <url>https://nexus.openecomp.org/content/repositories/releases/</url>
+                       <url>${nexusproxy}/${releaseNexusPath}</url>
                </repository>
                <snapshotRepository>
                        <id>ecomp-snapshots</id>
                        <name>OpenECOMP - Snapshot Repository</name>
-                       <url>https://nexus.openecomp.org/content/repositories/snapshots/</url>
+                       <url>${nexusproxy}/${snapshotNexusPath}</url>
                </snapshotRepository>
        </distributionManagement>
 </project>