Fix up poms to properly sign on deploy, provide source and javadoc jars per sonatype's requirements, and bump the API version to 1.4 for OSGI components.
diff --git a/pom.xml b/pom.xml
index 646d405..09e8e6c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,7 +97,7 @@
<!--
| The spec version of the public Guice API
-->
- <guice.api.version>1.3</guice.api.version>
+ <guice.api.version>1.4</guice.api.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!--
| Use "-Dguice.with.jarjar=false" to build without jarjar
@@ -107,6 +107,7 @@
| Use "-Dguice.with.no_aop=false" to skip the no-AOP variant
-->
<guice.with.no_aop>true</guice.with.no_aop>
+ <gpg.skip>true</gpg.skip>
</properties>
<dependencies>
@@ -339,14 +340,27 @@
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.7</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
- </plugin>
- <plugin>
- <artifactId>maven-gpg-plugin</artifactId>
- <version>1.1</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>jar</goal>
+ <goal>test-jar</goal>
+ </goals>
+ </execution>
+ </executions>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
@@ -361,6 +375,22 @@
</plugin>
</plugins>
</pluginManagement>
+ <plugins>
+ <!--
+ | Sign artifacts.
+ -->
+ <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>
<profiles>