Skip to content

Commit

Permalink
Moved ghpages site deployment behind a profile so it doesn't activate…
Browse files Browse the repository at this point in the history
… every time
  • Loading branch information
hamishmorgan committed Apr 6, 2015
1 parent 80cc694 commit 293aa6a
Showing 1 changed file with 36 additions and 20 deletions.
56 changes: 36 additions & 20 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<hamcrest-version>1.3</hamcrest-version>
<github.global.server>github</github.global.server>
</properties>

<organization>
Expand Down Expand Up @@ -410,25 +409,6 @@
</configuration>
</plugin>

<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.11</version>
<configuration>
<message>Creating site for ${project.version}</message>
<path>${project.distributionManagement.site.url}</path>
<merge>true</merge>
</configuration>
<executions>
<execution>
<goals>
<goal>site</goal>
</goals>
<phase>site</phase>
</execution>
</executions>
</plugin>


<plugin>
<groupId>org.codehaus.mojo</groupId>
Expand Down Expand Up @@ -463,4 +443,40 @@
</plugins>

</reporting>

<profiles>
<profile>
<id>ghpages-site-deploy</id>

<properties>
<github.global.server>github</github.global.server>
</properties>

<build>
<plugins>

<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.11</version>
<configuration>
<message>Creating site for ${project.version}</message>
<path>${project.distributionManagement.site.url}</path>
<merge>true</merge>
</configuration>
<executions>
<execution>
<goals>
<goal>site</goal>
</goals>
<phase>site</phase>
</execution>
</executions>
</plugin>

</plugins>
</build>
</profile>

</profiles>
</project>

0 comments on commit 293aa6a

Please sign in to comment.