Updated the pom files for signing

This commit is contained in:
Rachel Walker
2012-12-17 06:00:41 -08:00
parent e709ea0511
commit 9ec1bee1b1
3 changed files with 61 additions and 3 deletions

View File

@@ -234,11 +234,11 @@
<configuration>
<target>
<delete>
<fileset dir="${project.basedir}/artifacts" includes="*.${project.packaging}"/>
<fileset dir="${project.basedir}/artifacts" includes="*.${project.packaging}" />
</delete>
<copy todir="${project.basedir}/artifacts">
<fileset dir="${project.build.directory}">
<include name="${project.build.finalName}*.${project.packaging}"/>
<include name="${project.build.finalName}*.${project.packaging}" />
</fileset>
</copy>
</target>

31
pom.xml
View File

@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.raychatter</groupId>
<artifactId>spring-restful-exception-handler-parent</artifactId>
@@ -16,6 +16,35 @@
<developerConnection>scm:git:git@github.com:raychatter/spring-restful-exception-handler.git</developerConnection>
<url>git@github.com:raychatter/spring-restful-exception-handler.git</url>
</scm>
<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>
<modules>
<module>exception-handler</module>
<module>sample</module>

View File

@@ -15,6 +15,35 @@
<properties>
<spring.version>3.1.1.RELEASE</spring.version>
</properties>
<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>
<dependencies>
<!-- Spring 3 dependencies -->
<dependency>