From 32470ef4171f21ea3450776677b7ec7fc47e2263 Mon Sep 17 00:00:00 2001
From: Vivek <40461643+Vivekkr0311@users.noreply.github.com>
Date: Thu, 24 Jul 2025 14:53:29 +0530
Subject: [PATCH] [ACS-9823]: [publish] migrate from
nexus-staging-maven-pluging to central-publishing-maven-plugin (#712)
---
.github/workflows/ci.yml | 2 +-
.../alfresco-allinone-archetype/pom.xml | 2 +-
.../resources/archetype-resources/pom.xml | 4 +--
.../alfresco-platform-jar-archetype/pom.xml | 2 +-
.../alfresco-share-jar-archetype/pom.xml | 2 +-
archetypes/archetypes-it/pom.xml | 2 +-
modules/alfresco-rad/pom.xml | 2 +-
plugins/alfresco-maven-plugin/pom.xml | 2 +-
pom.xml | 30 ++++++++-----------
9 files changed, 21 insertions(+), 27 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6abeef43..82fa6df8 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -191,4 +191,4 @@ jobs:
gpg --batch --yes --pinentry-mode loopback --passphrase $GPG_SIGNING_PASSPHRASE --list-keys
- name: "Publish"
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
- run: mvn --batch-mode clean deploy -P sdk-release -DskipTests=true -Dgpg.passphrase=$GPG_SIGNING_PASSPHRASE
\ No newline at end of file
+ run: mvn --batch-mode clean central-publishing:publish -P sdk-release -DskipTests=true -Dgpg.passphrase=$GPG_SIGNING_PASSPHRASE
\ No newline at end of file
diff --git a/archetypes/alfresco-allinone-archetype/pom.xml b/archetypes/alfresco-allinone-archetype/pom.xml
index 141330e8..848f60d7 100644
--- a/archetypes/alfresco-allinone-archetype/pom.xml
+++ b/archetypes/alfresco-allinone-archetype/pom.xml
@@ -11,7 +11,7 @@
org.alfresco.maven
alfresco-sdk-aggregator
- 4.12.0
+ 4.12.0-A1
../../pom.xml
diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/pom.xml
index 69b1fc5b..882e6fb0 100644
--- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/pom.xml
+++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/pom.xml
@@ -5,8 +5,8 @@
${groupId}
${artifactId}
${version}
- AIO - SDK 4.12.0
- All-In-One (AIO) project for SDK 4.12.0
+ AIO - SDK 4.12.0-A1
+ All-In-One (AIO) project for SDK 4.12.0-A1
pom
diff --git a/archetypes/alfresco-platform-jar-archetype/pom.xml b/archetypes/alfresco-platform-jar-archetype/pom.xml
index a60fd9e6..1fdeaa16 100644
--- a/archetypes/alfresco-platform-jar-archetype/pom.xml
+++ b/archetypes/alfresco-platform-jar-archetype/pom.xml
@@ -12,7 +12,7 @@
org.alfresco.maven
alfresco-sdk-aggregator
- 4.12.0
+ 4.12.0-A1
../../pom.xml
diff --git a/archetypes/alfresco-share-jar-archetype/pom.xml b/archetypes/alfresco-share-jar-archetype/pom.xml
index 6aa17772..9b77f332 100644
--- a/archetypes/alfresco-share-jar-archetype/pom.xml
+++ b/archetypes/alfresco-share-jar-archetype/pom.xml
@@ -14,7 +14,7 @@
org.alfresco.maven
alfresco-sdk-aggregator
- 4.12.0
+ 4.12.0-A1
../../pom.xml
diff --git a/archetypes/archetypes-it/pom.xml b/archetypes/archetypes-it/pom.xml
index 88bdb7c2..f70d12e8 100644
--- a/archetypes/archetypes-it/pom.xml
+++ b/archetypes/archetypes-it/pom.xml
@@ -17,7 +17,7 @@
org.alfresco.maven
alfresco-sdk-aggregator
- 4.12.0
+ 4.12.0-A1
../../pom.xml
diff --git a/modules/alfresco-rad/pom.xml b/modules/alfresco-rad/pom.xml
index 8e68d11d..b28e9913 100644
--- a/modules/alfresco-rad/pom.xml
+++ b/modules/alfresco-rad/pom.xml
@@ -10,7 +10,7 @@
org.alfresco.maven
alfresco-sdk-aggregator
- 4.12.0
+ 4.12.0-A1
../../pom.xml
diff --git a/plugins/alfresco-maven-plugin/pom.xml b/plugins/alfresco-maven-plugin/pom.xml
index 624eea69..1f432f99 100644
--- a/plugins/alfresco-maven-plugin/pom.xml
+++ b/plugins/alfresco-maven-plugin/pom.xml
@@ -8,7 +8,7 @@
org.alfresco.maven
alfresco-sdk-aggregator
- 4.12.0
+ 4.12.0-A1
../../pom.xml
diff --git a/pom.xml b/pom.xml
index fe3cb759..7452b830 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
4.0.0
org.alfresco.maven
alfresco-sdk-aggregator
- 4.12.0
+ 4.12.0-A1
Alfresco SDK
This aggregator Project builds all modules required for the Alfresco SDK
pom
@@ -370,14 +370,19 @@
sdk-release
-
-
- central-releases-staging
- https://oss.sonatype.org/service/local/staging/deploy/maven2/
-
-
+
+ org.sonatype.central
+ central-publishing-maven-plugin
+ 0.8.0
+ true
+
+ central
+ true
+ published
+
+
org.apache.maven.plugins
maven-source-plugin
@@ -425,17 +430,6 @@
-
- org.sonatype.plugins
- nexus-staging-maven-plugin
- 1.6.13
- true
-
- central-releases-staging
- https://oss.sonatype.org/
- true
-
-
org.apache.maven.plugins
maven-release-plugin