Skip to content

Instantly share code, notes, and snippets.

@avh4
Created September 24, 2013 07:03
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 avh4/6681247 to your computer and use it in GitHub Desktop.
Save avh4/6681247 to your computer and use it in GitHub Desktop.
Configuring maven project to deploy on Sonatype with maven-jgitflow-plugin
...
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>
...
<build>
<plugins>
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-jgitflow-plugin</artifactId>
<version>1.0-alpha21.1</version>
<configuration>
</configuration>
</plugin>
</plugins>
</build>
...
<profiles>
<profile>
<id>releaseBranchPrefix-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment