Skip to content

Instantly share code, notes, and snippets.

@SakaDream
Created May 17, 2017 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SakaDream/15dc65e647337211a5d53cffd9061aa8 to your computer and use it in GitHub Desktop.
Save SakaDream/15dc65e647337211a5d53cffd9061aa8 to your computer and use it in GitHub Desktop.
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.11</version>
<configuration>
<!-- git commit message -->
<message>${project.version}</message>
<!-- disable webpage processing -->
<noJekyll>true</noJekyll>
<!-- matches distribution management repository url above -->
<outputDirectory>${project.build.directory}/mvn-repo</outputDirectory>
<!-- remote branch name -->
<branch>refs/heads/mvn-repo</branch>
<includes><include>**/*</include></includes>
<!-- github repo name -->
<repositoryName>GITHUB_REPO_NAME</repositoryName>
<!-- github username -->
<repositoryOwner>GITHUB_USERNAME</repositoryOwner>
</configuration>
<executions>
<!-- run site-maven-plugin's 'site' target as part of the build's normal 'deploy' phase -->
<execution>
<goals>
<goal>site</goal>
</goals>
<phase>deploy</phase>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment