Merge 1195713 (MRUNIT-37: Use maven deploy plugin)
git-svn-id: https://svn.apache.org/repos/asf/incubator/mrunit/branches/mrunit-0.5.0@1195714 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index bb678a3..8414fc9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,6 +20,13 @@
<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/xsd/maven-4.0.0.xsd">
+
+ <parent>
+ <groupId>org.apache</groupId>
+ <artifactId>apache</artifactId>
+ <version>7</version>
+ </parent>
+
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.mrunit</groupId>
<artifactId>mrunit</artifactId>
@@ -104,6 +111,23 @@
</build>
+ <repositories>
+ <repository>
+ <id>apache.snapshots</id>
+ <name>Apache Snapshot Repository</name>
+ <url>http://repository.apache.org/snapshots</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>apache-snapshots</id>
+ <url>https://repository.apache.org/content/repositories/snapshots</url>
+ </pluginRepository>
+ </pluginRepositories>
+
<dependencies>
<dependency>
@@ -151,4 +175,66 @@
</dependencies>
+
+ <profiles>
+ <profile>
+ <!-- Used only when cutting a full release. Configures the deploy plugin to mark
+ each artifact as a release (especially important for the archetype). Signs each
+ file deployed (it actually signs way too many files and we have to clean up a bit
+ once deployed). -->
+ <id>deploy</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-gpg-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>sign-artifacts</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ <properties>
+ <update-release-info>true</update-release-info>
+ <!-- Don't re-run tests as part of the deploy build.
+ Note we use skipTests, not maven.test.skip, since the latter skips
+ compilation too and we want to deploy tests. -->
+ <skipTests>true</skipTests>
+ </properties>
+ </profile>
+ <profile>
+ <!-- Only bind Javadoc JARs when the javadoc profile is active, since it is slow. -->
+ <id>javadoc</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.7</version>
+ <executions>
+ <execution>
+ <id>aggregate</id>
+ <goals>
+ <goal>aggregate</goal>
+ </goals>
+ <phase>site</phase>
+ </execution>
+ <execution>
+ <id>attach-javadocs</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>