From 5d7402c322fa98523793971b0a160850f0a3aa74 Mon Sep 17 00:00:00 2001 From: Eugene Platonov Date: Sun, 18 Feb 2024 18:17:42 -0500 Subject: [PATCH] Switch to `nexus-staging-maven-plugin` for releases --- README.md | 24 ++++++++++++++++++++++++ pom.xml | 47 ++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 62 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 72be7185..f6f17240 100644 --- a/README.md +++ b/README.md @@ -474,6 +474,30 @@ To execute only one of them, execute `mvn integration-test -Dinvoker.test=test_a Also, there are many [example projects](https://github.com/scoverage/scoverage-maven-samples/tree/scoverage-maven-samples-1.4.11/) for older versions of the plugin in a separate repo. Go to one of them and run `mvn site`. +## Development + +### Manual deployment + +Set sonatype credentials in `~/.m2/settings.xml`: + +```xml + + + + central + sonatype-username-goes-here + sonatype-password-goes-here + + + +``` + +#### Snapshot deployment +To deploy snapshot to sonatype snapshot repo run `mvn clean deploy -P release`. + +#### Release deployment +To deploy release to sonatype release repo run `mvn release:clean release:prepare release:perform -P release`. + ## License ``` This software is licensed under the Apache 2 license, quoted below. diff --git a/pom.xml b/pom.xml index 434ebd37..8eb16fe0 100644 --- a/pom.xml +++ b/pom.xml @@ -19,12 +19,6 @@ under the License. - - org.sonatype.oss - oss-parent - 7 - - 4.0.0 org.scoverage scoverage-maven-plugin @@ -53,6 +47,17 @@ under the License. https://github.com/scoverage/scoverage-maven-plugin/issues + + + central + ${nexus.url}/content/repositories/snapshots + + + central + ${nexus.url}/service/local/staging/deploy/maven2 + + + sksamuel @@ -94,6 +99,8 @@ under the License. 2.0.11 2.13 + + https://oss.sonatype.org @@ -328,6 +335,9 @@ under the License. 3.0.1 true + false + release + deploy @@ -740,11 +750,10 @@ under the License. - + - sonatype-oss-release - + release @@ -761,6 +770,26 @@ under the License. org.apache.maven.plugins maven-gpg-plugin 3.1.0 + + + verify + + sign + + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + ${nexus.url} + central + true +