Deploy Documentation on Merge 51/23451/6
authorMathieu Lemay <mlemay@inocybe.com>
Fri, 26 Jun 2015 18:53:49 +0000 (14:53 -0400)
committerMathieu Lemay <mlemay@inocybe.com>
Sat, 27 Jun 2015 12:55:20 +0000 (12:55 +0000)
Provide an activation profile so that site generation
and deploy run when the merge flag is passed by JJB
merge jobs.

Change-Id: I546afbf2dade6c324ceba161b7b401b992aad973
Signed-off-by: Mathieu Lemay <mlemay@inocybe.com>
pom.xml

diff --git a/pom.xml b/pom.xml
index ad83c9a6f18c2aab80027dcaa084de73a6fed81c..47937c27942eb8a7448a5e68d547fa2cbf28dcfc 100644 (file)
--- a/pom.xml
+++ b/pom.xml
      </plugin>
    </plugins>
   </build>
+  <profiles>
+    <profile>
+      <activation>
+        <property>
+          <name>merge</name>
+          <value>true</value>
+        </property>
+      </activation>
+      <build>
+        <plugins>
+           <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-site-plugin</artifactId>
+              <executions>
+                <execution>
+                  <goals>
+                    <goal>site</goal>
+                  </goals>
+                  <phase>compile</phase>
+                </execution>
+              </executions>
+           </plugin>
+           <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-site-plugin</artifactId>
+              <executions>
+                <execution>
+                  <goals>
+                    <goal>deploy</goal>
+                  </goals>
+                  <phase>install</phase>
+                </execution>
+              </executions>
+           </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>