Skip to content

Commit

Permalink
Trying out site-maven-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Edwin Shin committed Feb 23, 2013
1 parent 062873d commit 90b4f94
Showing 1 changed file with 37 additions and 5 deletions.
42 changes: 37 additions & 5 deletions pom.xml
Expand Up @@ -28,6 +28,8 @@
<!-- Use ${project_name} instead of ${project.artifactId} to avoid incorrect
replacements of "fcrepo4" in child modules -->
<project_name>fcrepo4</project_name>
<!-- https://github.com/github/maven-plugins/blob/master/README.md -->
<github.global.server>github</github.global.server>
</properties>

<modules>
Expand Down Expand Up @@ -363,6 +365,26 @@
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.7</version>
<configuration>
<message>Creating site for ${project.artifactId}, ${project.version}</message>
<!-- this does the trick to place every module in the correct subfolder -->
<path>${project.distributionManagement.site.url}</path>
<merge>true</merge>
</configuration>
<executions>
<execution>
<id>github</id>
<goals>
<goal>site</goal>
</goals>
<phase>site-deploy</phase>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
Expand Down Expand Up @@ -410,6 +432,7 @@
<plugin>
<artifactId>maven-site-plugin</artifactId>
<configuration>
<skipDeploy>true</skipDeploy>
<reportPlugins>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
Expand Down Expand Up @@ -469,6 +492,15 @@
</plugin>
</reportPlugins>
</configuration>
<dependencies>
<dependency>
<!-- allows markdown syntax for site generation. To use it place files
below src/site/markdown/[filename].md -->
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-module-markdown</artifactId>
<version>1.3</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
Expand Down Expand Up @@ -519,12 +551,11 @@
</repositories>

<scm>
<connection>scm:git:git://github.com/mediashelf/${project_name}.git
<connection>scm:git:git://github.com/futures/${project_name}.git
</connection>
<developerConnection>scm:git:git@github.com:mediashelf/${project_name}.git
<developerConnection>scm:git:git@github.com:futures/${project_name}.git
</developerConnection>
<url>http://github.com/mediashelf/${project_name}</url>
<tag>HEAD</tag>
<url>http://github.com/futures/${project_name}</url>
</scm>

<prerequisites>
Expand Down Expand Up @@ -574,7 +605,8 @@
<distributionManagement>
<site>
<id>gh-pages</id>
<url>gitsite:git@github.com/futures/${project_name}.git</url>
<name>Deployment through GitHub's site deployment plugin</name>
<url>site/${project.version}</url>
</site>
</distributionManagement>

Expand Down

0 comments on commit 90b4f94

Please sign in to comment.