Modify pom.xml for releasing artifacts to maven central.

This commit is contained in:
Marko Zivanovic
2015-03-10 21:21:56 +01:00
parent 9bcda4c0ed
commit 28b91fd0ec
+83 -4
View File
@@ -14,6 +14,7 @@
Solution for protecting passwords and other sensitive data in configuration files or in transit from casual glances. Solution for protecting passwords and other sensitive data in configuration files or in transit from casual glances.
Not at all useful for protecting sensitive data from attackers bent on stealing your secrets. Not at all useful for protecting sensitive data from attackers bent on stealing your secrets.
</description> </description>
<url>https://github.com/zmarko/jPasswordObfuscator</url>
<licenses> <licenses>
<license> <license>
@@ -36,10 +37,11 @@
</developer> </developer>
</developers> </developers>
<organization> <scm>
<name>Marko Zivanovic</name> <connection>scm:git:git@github.com:zmarko/jPasswordObfuscator.git</connection>
<url>http://marko.zivanovic.in.rs</url> <developerConnection>scm:git:git@github.com:zmarko/jPasswordObfuscator.git</developerConnection>
</organization> <url>git@github.com:zmarko/jPasswordObfuscator.git</url>
</scm>
<dependencies> <dependencies>
<dependency> <dependency>
@@ -54,6 +56,83 @@
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.5</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<goals>deploy</goals>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>