(nojira) ensure release artifacts are sifned and CI can deploy
</plugins>
</build>
</profile>
+
+
<profile>
<id>ci</id>
<activation>
</execution>
</executions>
</plugin>
+
+ <plugin>
+ <inherited>true</inherited>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <version>2.8.2</version>
+ <configuration>
+ <altSnapshotDeploymentRepository>apache.snapshots.https</altSnapshotDeploymentRepository>
+ </configuration>
+ <executions>
+ <execution>
+ <id>apache.snapshots.https</id> <!-- from jenkins nighties we deploy to snapshots -->
+ <phase>deploy</phase>
+ <goals>
+ <goal>deploy</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <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>
+ <executions>
+ <execution>
+ <id>attach-javadocs</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ <!-- We want to sign the artifact, the POM, and all attached artifacts -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-gpg-plugin</artifactId>
+ <version>1.6</version>
+ <executions>
+ <execution>
+ <id>sign-release-artifacts</id>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ <configuration>
+ <keyname>${gpg.keyname}</keyname>
+ <passphraseServerId>${gpg.passphrase}</passphraseServerId>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
</plugins>
</build>
</profile>
<useReleaseProfile>true</useReleaseProfile>
<autoVersionSubmodules>true</autoVersionSubmodules>
<preparationGoals>clean package install</preparationGoals>
- <releaseProfiles>apache.releases.https</releaseProfiles>
- <goals>deploy</goals>
+ <releaseProfiles>
+ <releaseProfile>apache.releases.https</releaseProfile>
+ </releaseProfiles>
+ <goals>
+ <goal>sign</goal>
+ <goal>deploy</goal>
+ </goals>
<arguments>-Papache-release ${arguments}</arguments>
<waitBeforeTagging>10</waitBeforeTagging>
</configuration>
<version>2.8.2</version>
<executions>
<execution>
- <id>apache.releases.https</id>
+ <id>apache.releases.https</id> <!-- release first to staging then to nexus -->
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
-
</plugin>
+
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>sign-release-artifacts</id>
- <phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
