From c01edd343ae764b771fe3ae6b0066ab7b1a49c3a Mon Sep 17 00:00:00 2001 From: Andres Almiray Date: Sat, 4 Dec 2021 21:00:56 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Configure=20deployment=20profiles?= =?UTF-8?q?=20for=20Maven=20Central=20and=20Github=20releases?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oss-quickstart-simple-template/pom.xml | 210 ++++++++++++++++++++++++- 1 file changed, 208 insertions(+), 2 deletions(-) diff --git a/oss-quickstart-simple-template/pom.xml b/oss-quickstart-simple-template/pom.xml index 3cf481e..513ad13 100644 --- a/oss-quickstart-simple-template/pom.xml +++ b/oss-quickstart-simple-template/pom.xml @@ -30,6 +30,11 @@ ${java.version} UTF-8 UTF-8 + + https://s01.oss.sonatype.org + + moditect/oss-quickstart + git@github.com:${project.repository}.git OSS Quickstart Single-Module Archetype Template @@ -45,12 +50,42 @@ + + + changeme + Changeme + + + + + + github.com + https://github.com/${project.repository}/issues + + + + scm:git:${repository.url} + scm:git:${repository.url} + ${repository.url} + + + + + ossrh + ${nexus.url}/content/repositories/snapshots + + + ossrh + ${nexus.url}/service/local/staging/deploy/maven2/ + + + org.junit junit-bom - 5.8.1 + 5.8.2 pom import @@ -69,7 +104,6 @@ 3.21.0 test - @@ -112,6 +146,11 @@ maven-clean-plugin 3.1.0 + + org.apache.maven.plugins + maven-dependency-plugin + 3.1.2 + org.apache.maven.plugins maven-deploy-plugin @@ -122,6 +161,11 @@ maven-enforcer-plugin 3.0.0-M3 + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + org.apache.maven.plugins maven-install-plugin @@ -132,6 +176,11 @@ maven-jar-plugin 3.2.0 + + org.apache.maven.plugins + maven-javadoc-plugin + 3.2.0 + org.apache.maven.plugins maven-resources-plugin @@ -142,15 +191,39 @@ maven-site-plugin 3.9.1 + + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + org.apache.maven.plugins maven-surefire-plugin 3.0.0-M5 + + org.codehaus.mojo + versions-maven-plugin + 2.8.1 + + + org.jreleaser + jreleaser-maven-plugin + 0.9.1 + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.8 + + + org.codehaus.mojo + versions-maven-plugin + @@ -250,5 +323,138 @@ true + + publication + + + release + + + + + + org.apache.maven.plugins + maven-source-plugin + + + attach-sources + + jar + + + true + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + attach-javadocs + + jar + + + true + + + + + + com.coderplus.maven.plugins + copy-rename-maven-plugin + 1.0.1 + + + copy-license-file + generate-sources + + copy + + + ${session.executionRootDirectory}/LICENSE.txt + ${project.build.outputDirectory}/META-INF/LICENSE-${project.identifier} + + + + + + + + + gpg + + + release + + + + + + org.apache.maven.plugins + maven-gpg-plugin + + + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + + + + deploy + + + release + + + + deploy + + + org.sonatype.plugins + nexus-staging-maven-plugin + true + + central + ${nexus.url} + true + + + + + + + jreleaser + + + + org.jreleaser + jreleaser-maven-plugin + + + + + ${java.version} + + + + + + + +