Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added profile, which signs artifacts during deployment. Changed ids

of release and snapshot repositories.
  • Loading branch information...
commit d990eab504e1f071fd16b4caffc9d8b2e1848e86 1 parent 9558363
yahro yahro authored
Showing with 42 additions and 16 deletions.
  1. +42 −16 pom.xml
58 pom.xml
View
@@ -116,21 +116,47 @@
</dependency>
</dependencies>
-
-<distributionManagement>
- <snapshotRepository>
- <id>ossKamikaze</id>
- <name>SNA snapshot repo</name>
- <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
- </snapshotRepository>
-
-<!--
- <repository>
- <id>nexusKamikazeRelease</id>
- <name>Nexus staging Repo</name>
- <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
- </repository>
--->
- </distributionManagement>
+ <distributionManagement>
+ <repository>
+ <id>sonatype-nexus-staging</id>
+ <name>sonatype nexus staging repository</name>
+ <url>http://oss.sonatype.org/service/local/staging/deploy/maven2</url>
+ </repository>
+ <snapshotRepository>
+ <id>sonatype-nexus-snapshots</id>
+ <name>sonatype nexus snapshots repository</name>
+ <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
+ </snapshotRepository>
+ </distributionManagement>
+
+ <profiles>
+ <profile>
+ <id>release-sign-artifacts</id>
+ <activation>
+ <property>
+ <name>performRelease</name>
+ <value>true</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-gpg-plugin</artifactId>
+ <version>1.1</version>
+ <executions>
+ <execution>
+ <id>sign-artifacts</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>
Please sign in to comment.
Something went wrong with that request. Please try again.