Add maven site plugin 47/14447/1
authorVarun Gudisena <vg411h@att.com>
Fri, 22 Sep 2017 04:39:45 +0000 (23:39 -0500)
committerVarun Gudisena <vg411h@att.com>
Fri, 22 Sep 2017 04:39:51 +0000 (23:39 -0500)
Added maven site plug for jenkins job

issue-id: DMAAP-144
Change-Id: Id54122d4d3e0038c3d4767a38302c3c0077b507d
Signed-off-by: Varun Gudisena <vg411h@att.com>
pom.xml

diff --git a/pom.xml b/pom.xml
index 7a50428..ca7b437 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -32,7 +32,7 @@
        <parent>
                <groupId>org.onap.oparent</groupId>
                <artifactId>oparent</artifactId>
-               <version>1.0.0-SNAPSHOT</version>
+               <version>0.1.1</version>
        </parent>
        
        <properties>
            <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
            <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
            <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
+           <sitePath>/content/sites/site/org/onap/dmaap/${project.artifactId}/${project.version}</sitePath>
        </properties>
 
        <!-- Distribution management -->
        <!-- Currently all artifacts will be uploaded to att-public-group reposiotry 
                on Maven Central -->
+       <distributionManagement>
+               <site>
+                       <id>ecomp-site</id>
+                       <url>dav:${nexusproxy}${sitePath}</url>
+               </site>
+       </distributionManagement>
 
        <!-- End Distribution management -->
 
                        <!-- <phase>package</phase> bind to the packaging phase <goals> <goal>single</goal> 
                                </goals> </execution> </executions> </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>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-javadoc-plugin</artifactId>