aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2021-05-15 12:54:48 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2021-05-16 07:05:28 +0700
commitf9bd419b71a6071d8ec5c903b1ea8e79a841b8b1 (patch)
tree220f14dd0585d8b7e75df340bdfc65f6abf77c24
parentc6155643d6576449f7f721e0ca26a7be9c9dc93a (diff)
downloadaspectj-f9bd419b71a6071d8ec5c903b1ea8e79a841b8b1.tar.gz
aspectj-f9bd419b71a6071d8ec5c903b1ea8e79a841b8b1.zip
Only sign + stage artifacts meant to be deployed
Even with the 'release' profile, it is not necessary to sign each artifact, because only the ones to be published on Maven Central need signatures. Similarly, make Nexus staging deployment to Sonatype OSSRH dependent on 'maven.deploy.skip' and skip staging for non-public artifacts. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
-rw-r--r--pom.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 166549658..8e1405f64 100644
--- a/pom.xml
+++ b/pom.xml
@@ -326,6 +326,10 @@
<goals>
<goal>sign</goal>
</goals>
+ <configuration>
+ <!-- Only sign artifacts which are also meant to be deployed -->
+ <skip>${maven.deploy.skip}</skip>
+ </configuration>
</execution>
</executions>
</plugin>
@@ -355,6 +359,8 @@
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
+ <!-- Only stage artifacts to which are also meant to be deployed -->
+ <skipStaging>${maven.deploy.skip}</skipStaging>
</configuration>
</plugin>
<plugin>