Skip to content

Instantly share code, notes, and snippets.

@ludovicc
Created December 12, 2011 19:51
Show Gist options
  • Save ludovicc/1468796 to your computer and use it in GitHub Desktop.
Save ludovicc/1468796 to your computer and use it in GitHub Desktop.
Maven - configure the Release plugin to work with a Git repository
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.2.1</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<!-- required for Git -->
<localCheckout>true</localCheckout>
<preparationGoals>clean verify</preparationGoals>
<releaseProfiles>release</releaseProfiles>
<goals>javadoc:jar site site-deploy deploy</goals>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment