Add missing properties and distributionManagement 47/7847/1
authorPamela Dragosh <pdragosh@research.att.com>
Thu, 17 Aug 2017 14:29:36 +0000 (10:29 -0400)
committerPamela Dragosh <pdragosh@research.att.com>
Thu, 17 Aug 2017 14:30:08 +0000 (10:30 -0400)
In order for the release jobs to execute successfully and the
stage-site jobs to also succeed.

Change-Id: I06be2aaee050517a5a04d7361190b554a4da0627
Issue-Id: POLICY-139
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
pom.xml

diff --git a/pom.xml b/pom.xml
index 35c480b..09943fa 100644 (file)
--- a/pom.xml
+++ b/pom.xml
        <description>Code that implements the Policy Administration Backend.</description>
 
        <properties>
+               <nexusproxy>https://nexus.onap.org</nexusproxy>
+                <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
+               <releases.path>content/repositories/releases/</releases.path>
+               <snapshots.path>content/repositories/snapshots/</snapshots.path>
+               <staging.path>content/repositories/staging/</staging.path>                
        </properties>
 
        <modules>
        </modules>
 
+       <distributionManagement>
+               <site>
+                       <id>ecomp-site</id>
+                       <url>dav:${nexusproxy}${sitePath}</url>
+               </site>
+       </distributionManagement>
+
+       <build>
+               <plugins>
+                       <plugin>
+                               <groupId>org.sonatype.plugins</groupId>
+                               <artifactId>nexus-staging-maven-plugin</artifactId>
+                               <version>1.6.7</version>
+                               <extensions>true</extensions>
+                               <configuration>
+                                       <nexusUrl>${nexusproxy}</nexusUrl>
+                                       <stagingProfileId>176c31dfe190a</stagingProfileId>
+                                       <serverId>ecomp-staging</serverId>
+                               </configuration>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-deploy-plugin</artifactId>
+                               <version>2.8</version> <!-- This version supports the "deployAtEnd" parameter -->
+                               <configuration>
+                                       <skip />
+                               </configuration>
+                       </plugin>
+                       <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>
+               </plugins>
+       </build>
+       <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>
+
 </project>