Fix bad javadoc and sources signatures during deploy [#5]

The javadoc and sources jar files were being signed before they were built.

Order of build plugins in release profile modified to sign them after they
are created.

Signed-off-by: Paul Campbell <pcampbell@kemitix.net>
This commit is contained in:
Paul Campbell 2016-01-07 10:48:17 +00:00
parent bf4af0939a
commit 93702f8949

27
pom.xml
View file

@ -61,23 +61,21 @@
</activation> </activation>
<build> <build>
<plugins> <plugins>
<!-- plugin sequence: javadoc, sources, gpg, deploy -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<version>1.6</version> <version>2.10.3</version>
<configuration>
<passphrase>${gpg.passphrase}</passphrase>
</configuration>
<executions> <executions>
<execution> <execution>
<id>sign-artifacts</id> <id>attach-javadocs</id>
<phase>verify</phase> <phase>verify</phase>
<goals> <goals>
<goal>sign</goal> <goal>jar</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
</plugin><!-- maven-gpg-plugin --> </plugin><!-- maven-javadoc-plugin -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
@ -96,18 +94,21 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-gpg-plugin</artifactId>
<version>2.10.3</version> <version>1.6</version>
<configuration>
<passphrase>${gpg.passphrase}</passphrase>
</configuration>
<executions> <executions>
<execution> <execution>
<id>attach-javadocs</id> <id>sign-artifacts</id>
<phase>verify</phase> <phase>verify</phase>
<goals> <goals>
<goal>jar</goal> <goal>sign</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
</plugin><!-- maven-javadoc-plugin --> </plugin><!-- maven-gpg-plugin -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>