This is an example project that uses the Maven Release Plugin , GitHub Downloads Plugin and Github Site Plugin
- Fork this project
- Update the
pom.xmlfile<url>element to be the address of your fork - Optionally update
<scm>and<developers>section as well to have the information for your fork - Add the following to your Maven
settings.xmlfile (update with your GitHub login name and password):
<profiles>
<profile>
<id>github</id>
<properties>
<github.global.userName>user</github.global.userName>
<github.global.password>password</github.global.password>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>- Add the following to your Maven
settings.xmlfile (update with your Repository Manager login name and password):
<servers>
<server>
<id>foobar</id>
<username>user</username>
<password>password</password>
</server>
</servers>- TODO
** update pom.xml for distribution management ** assembly => download
$mvn release:prepare
$mvn release:perform
$mvn clean install ghDownloads:upload
$mvn site
The generated site will be committed to the gh-pages branch and visible here.
- https://github.com/github/maven-plugins
- https://github.com/kevinsawicki/github-maven-example
- https://github.com/blog/945-github-maven-plugins
- http://www.sonatype.com/people/2009/09/maven-tips-and-tricks-using-github/
- http://www.owengriffin.com/posts/2010/04/15/Releasing_Maven_projects_to_Github.html