Skip to content

Instantly share code, notes, and snippets.

@lukespragg
Created April 26, 2014 02:44
Show Gist options
  • Save lukespragg/11310442 to your computer and use it in GitHub Desktop.
Save lukespragg/11310442 to your computer and use it in GitHub Desktop.
Javadocs GitHub deployment for Maven
<!-- Javadocs GitHub deployment -->
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.7</version>
<executions>
<execution>
<configuration>
<server>github-deploy</server>
<repositoryName>${project.name}</repositoryName>
<repositoryOwner>${project.organization.name}</repositoryOwner>
<branch>refs/heads/gh-pages</branch>
<merge>true</merge>
<path>commons</path>
<message>Javadocs for ${project.name} ${project.version}-b${buildNumber}</message>
</configuration>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment