From f184694ee6d8e0e9ba1e1d2349cad5288ddb83b9 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 10 Jul 2025 19:02:34 +0000
Subject: [PATCH 1/2] Initial plan
From 2d5c456821cf70c6ceaf241161c8a1ae49f4821f Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 10 Jul 2025 19:10:38 +0000
Subject: [PATCH 2/2] Migrate from nexus-staging-maven-plugin to
central-publishing-maven-plugin
Co-authored-by: maybeec <1427255+maybeec@users.noreply.github.com>
---
.mvn/ci-settings.xml | 2 +-
.../src/test/resources/utils/pom.xml | 6 ++--
.../src/test/resources/utils/pom.xml | 6 ++--
.../src/test/resources/utils/pom.xml | 6 ++--
.../src/test/resources/utils/pom.xml | 6 ++--
.../src/test/resources/utils/pom.xml | 6 ++--
.../src/test/resources/utils/pom.xml | 6 ++--
.../src/test/resources/utils/pom.xml | 6 ++--
.../src/test/resources/utils/pom.xml | 6 ++--
.../src/test/resources/utils/pom.xml | 6 ++--
.../src/test/resources/utils/pom.xml | 6 ++--
.../src/test/resources/utils/pom.xml | 6 ++--
.../src/test/resources/utils/pom.xml | 6 ++--
.../src/test/resources/utils/pom.xml | 6 ++--
.../src/test/resources/utils/pom.xml | 6 ++--
.../templates/CobiGen_Templates/pom.xml | 6 ++--
.../templates/CobiGen_Templates/pom.xml | 6 ++--
.../unittest/MavenMirrorTest/settings.xml | 4 +--
.../unittest/MavenSettingsTest/settings.xml | 8 ++---
pom.xml | 36 ++++++-------------
20 files changed, 65 insertions(+), 81 deletions(-)
diff --git a/.mvn/ci-settings.xml b/.mvn/ci-settings.xml
index 2fa62a2620..3fcedc6992 100644
--- a/.mvn/ci-settings.xml
+++ b/.mvn/ci-settings.xml
@@ -13,7 +13,7 @@
${env.SONATYPE_PASSWORD}
- ossrh
+ central
${env.SONATYPE_USERNAME}
${env.SONATYPE_PASSWORD}
diff --git a/cobigen-templates/crud-angular-client-app/src/test/resources/utils/pom.xml b/cobigen-templates/crud-angular-client-app/src/test/resources/utils/pom.xml
index 05c62afd9d..1369c92014 100644
--- a/cobigen-templates/crud-angular-client-app/src/test/resources/utils/pom.xml
+++ b/cobigen-templates/crud-angular-client-app/src/test/resources/utils/pom.xml
@@ -78,9 +78,9 @@
true
- ossrh
- OSSRH Snapshots
- https://s01.oss.sonatype.org/content/repositories/snapshots/
+ central
+ Central Repository Snapshots
+ https://central.sonatype.com/repository/maven-snapshots
diff --git a/cobigen-templates/crud-ionic-client-app/src/test/resources/utils/pom.xml b/cobigen-templates/crud-ionic-client-app/src/test/resources/utils/pom.xml
index b7fbfe64c2..abeaa0c0f2 100644
--- a/cobigen-templates/crud-ionic-client-app/src/test/resources/utils/pom.xml
+++ b/cobigen-templates/crud-ionic-client-app/src/test/resources/utils/pom.xml
@@ -80,9 +80,9 @@
true
- ossrh
- OSSRH Snapshots
- https://s01.oss.sonatype.org/content/repositories/snapshots/
+ central
+ Central Repository Snapshots
+ https://central.sonatype.com/repository/maven-snapshots
diff --git a/cobigen-templates/crud-java-ea-uml/src/test/resources/utils/pom.xml b/cobigen-templates/crud-java-ea-uml/src/test/resources/utils/pom.xml
index 68969e4dea..98bc0ea009 100644
--- a/cobigen-templates/crud-java-ea-uml/src/test/resources/utils/pom.xml
+++ b/cobigen-templates/crud-java-ea-uml/src/test/resources/utils/pom.xml
@@ -80,9 +80,9 @@
true
- ossrh
- OSSRH Snapshots
- https://s01.oss.sonatype.org/content/repositories/snapshots/
+ central
+ Central Repository Snapshots
+ https://central.sonatype.com/repository/maven-snapshots
diff --git a/cobigen-templates/crud-java-server-app-complex/src/test/resources/utils/pom.xml b/cobigen-templates/crud-java-server-app-complex/src/test/resources/utils/pom.xml
index 2f59b21378..684f1b99d0 100644
--- a/cobigen-templates/crud-java-server-app-complex/src/test/resources/utils/pom.xml
+++ b/cobigen-templates/crud-java-server-app-complex/src/test/resources/utils/pom.xml
@@ -80,9 +80,9 @@
true
- ossrh
- OSSRH Snapshots
- https://s01.oss.sonatype.org/content/repositories/snapshots/
+ central
+ Central Repository Snapshots
+ https://central.sonatype.com/repository/maven-snapshots
diff --git a/cobigen-templates/crud-java-server-app/src/test/resources/utils/pom.xml b/cobigen-templates/crud-java-server-app/src/test/resources/utils/pom.xml
index 3c3394ce26..738f3b7d35 100644
--- a/cobigen-templates/crud-java-server-app/src/test/resources/utils/pom.xml
+++ b/cobigen-templates/crud-java-server-app/src/test/resources/utils/pom.xml
@@ -80,9 +80,9 @@
true
- ossrh
- OSSRH Snapshots
- https://s01.oss.sonatype.org/content/repositories/snapshots/
+ central
+ Central Repository Snapshots
+ https://central.sonatype.com/repository/maven-snapshots
diff --git a/cobigen-templates/crud-ngrx-client-app/src/test/resources/utils/pom.xml b/cobigen-templates/crud-ngrx-client-app/src/test/resources/utils/pom.xml
index ee099cf3c6..83c4e1f79b 100644
--- a/cobigen-templates/crud-ngrx-client-app/src/test/resources/utils/pom.xml
+++ b/cobigen-templates/crud-ngrx-client-app/src/test/resources/utils/pom.xml
@@ -80,9 +80,9 @@
true
- ossrh
- OSSRH Snapshots
- https://s01.oss.sonatype.org/content/repositories/snapshots/
+ central
+ Central Repository Snapshots
+ https://central.sonatype.com/repository/maven-snapshots
diff --git a/cobigen-templates/crud-openapi-angular-client-app/src/test/resources/utils/pom.xml b/cobigen-templates/crud-openapi-angular-client-app/src/test/resources/utils/pom.xml
index d600eb559a..eebe738a96 100644
--- a/cobigen-templates/crud-openapi-angular-client-app/src/test/resources/utils/pom.xml
+++ b/cobigen-templates/crud-openapi-angular-client-app/src/test/resources/utils/pom.xml
@@ -80,9 +80,9 @@
true
- ossrh
- OSSRH Snapshots
- https://s01.oss.sonatype.org/content/repositories/snapshots/
+ central
+ Central Repository Snapshots
+ https://central.sonatype.com/repository/maven-snapshots
diff --git a/cobigen-templates/crud-openapi-angular-service-based-app/src/test/resources/utils/pom.xml b/cobigen-templates/crud-openapi-angular-service-based-app/src/test/resources/utils/pom.xml
index 9a33c5c4f2..b1bedd299b 100644
--- a/cobigen-templates/crud-openapi-angular-service-based-app/src/test/resources/utils/pom.xml
+++ b/cobigen-templates/crud-openapi-angular-service-based-app/src/test/resources/utils/pom.xml
@@ -80,9 +80,9 @@
true
- ossrh
- OSSRH Snapshots
- https://s01.oss.sonatype.org/content/repositories/snapshots/
+ central
+ Central Repository Snapshots
+ https://central.sonatype.com/repository/maven-snapshots
diff --git a/cobigen-templates/crud-openapi-ionic-client-app/src/test/resources/utils/pom.xml b/cobigen-templates/crud-openapi-ionic-client-app/src/test/resources/utils/pom.xml
index 9e540cd237..692ea43584 100644
--- a/cobigen-templates/crud-openapi-ionic-client-app/src/test/resources/utils/pom.xml
+++ b/cobigen-templates/crud-openapi-ionic-client-app/src/test/resources/utils/pom.xml
@@ -80,9 +80,9 @@
true
- ossrh
- OSSRH Snapshots
- https://s01.oss.sonatype.org/content/repositories/snapshots/
+ central
+ Central Repository Snapshots
+ https://central.sonatype.com/repository/maven-snapshots
diff --git a/cobigen-templates/crud-openapi-java-server-app/src/test/resources/utils/pom.xml b/cobigen-templates/crud-openapi-java-server-app/src/test/resources/utils/pom.xml
index 95c84448de..6be8b29649 100644
--- a/cobigen-templates/crud-openapi-java-server-app/src/test/resources/utils/pom.xml
+++ b/cobigen-templates/crud-openapi-java-server-app/src/test/resources/utils/pom.xml
@@ -79,9 +79,9 @@
true
- ossrh
- OSSRH Snapshots
- https://s01.oss.sonatype.org/content/repositories/snapshots/
+ central
+ Central Repository Snapshots
+ https://central.sonatype.com/repository/maven-snapshots
diff --git a/cobigen-templates/crud-openapi-net/src/test/resources/utils/pom.xml b/cobigen-templates/crud-openapi-net/src/test/resources/utils/pom.xml
index 4336fbf1a7..99193c9bf4 100644
--- a/cobigen-templates/crud-openapi-net/src/test/resources/utils/pom.xml
+++ b/cobigen-templates/crud-openapi-net/src/test/resources/utils/pom.xml
@@ -79,9 +79,9 @@
true
- ossrh
- OSSRH Snapshots
- https://s01.oss.sonatype.org/content/repositories/snapshots/
+ central
+ Central Repository Snapshots
+ https://central.sonatype.com/repository/maven-snapshots
diff --git a/cobigen-templates/crud-typescript-angular-client-app/src/test/resources/utils/pom.xml b/cobigen-templates/crud-typescript-angular-client-app/src/test/resources/utils/pom.xml
index c692753c92..f3bc02d783 100644
--- a/cobigen-templates/crud-typescript-angular-client-app/src/test/resources/utils/pom.xml
+++ b/cobigen-templates/crud-typescript-angular-client-app/src/test/resources/utils/pom.xml
@@ -80,9 +80,9 @@
true
- ossrh
- OSSRH Snapshots
- https://s01.oss.sonatype.org/content/repositories/snapshots/
+ central
+ Central Repository Snapshots
+ https://central.sonatype.com/repository/maven-snapshots
diff --git a/cobigen-templates/templates-devon4j-tests/src/test/resources/utils/pom.xml b/cobigen-templates/templates-devon4j-tests/src/test/resources/utils/pom.xml
index 2053429589..2796f02444 100644
--- a/cobigen-templates/templates-devon4j-tests/src/test/resources/utils/pom.xml
+++ b/cobigen-templates/templates-devon4j-tests/src/test/resources/utils/pom.xml
@@ -80,9 +80,9 @@
true
- ossrh
- OSSRH Snapshots
- https://s01.oss.sonatype.org/content/repositories/snapshots/
+ central
+ Central Repository Snapshots
+ https://central.sonatype.com/repository/maven-snapshots
diff --git a/cobigen-templates/testdata-builder/src/test/resources/utils/pom.xml b/cobigen-templates/testdata-builder/src/test/resources/utils/pom.xml
index e790420be9..0c6911640e 100644
--- a/cobigen-templates/testdata-builder/src/test/resources/utils/pom.xml
+++ b/cobigen-templates/testdata-builder/src/test/resources/utils/pom.xml
@@ -79,9 +79,9 @@
true
- ossrh
- OSSRH Snapshots
- https://s01.oss.sonatype.org/content/repositories/snapshots/
+ central
+ Central Repository Snapshots
+ https://central.sonatype.com/repository/maven-snapshots
diff --git a/cobigen/cobigen-core/src/test/resources/testdata/unittest/config/upgrade/TemplateSetUpgraderTest/valid-2.0/templates/CobiGen_Templates/pom.xml b/cobigen/cobigen-core/src/test/resources/testdata/unittest/config/upgrade/TemplateSetUpgraderTest/valid-2.0/templates/CobiGen_Templates/pom.xml
index 4bc0a32864..25d9373c1c 100644
--- a/cobigen/cobigen-core/src/test/resources/testdata/unittest/config/upgrade/TemplateSetUpgraderTest/valid-2.0/templates/CobiGen_Templates/pom.xml
+++ b/cobigen/cobigen-core/src/test/resources/testdata/unittest/config/upgrade/TemplateSetUpgraderTest/valid-2.0/templates/CobiGen_Templates/pom.xml
@@ -91,9 +91,9 @@
true
- ossrh
- OSSRH Snapshots
- https://s01.oss.sonatype.org/content/repositories/snapshots/
+ central
+ Central Repository Snapshots
+ https://central.sonatype.com/repository/maven-snapshots
diff --git a/cobigen/cobigen-core/src/test/resources/testdata/unittest/config/upgrade/TemplateSetUpgraderTest/valid-2.1/templates/CobiGen_Templates/pom.xml b/cobigen/cobigen-core/src/test/resources/testdata/unittest/config/upgrade/TemplateSetUpgraderTest/valid-2.1/templates/CobiGen_Templates/pom.xml
index 4bc0a32864..25d9373c1c 100644
--- a/cobigen/cobigen-core/src/test/resources/testdata/unittest/config/upgrade/TemplateSetUpgraderTest/valid-2.1/templates/CobiGen_Templates/pom.xml
+++ b/cobigen/cobigen-core/src/test/resources/testdata/unittest/config/upgrade/TemplateSetUpgraderTest/valid-2.1/templates/CobiGen_Templates/pom.xml
@@ -91,9 +91,9 @@
true
- ossrh
- OSSRH Snapshots
- https://s01.oss.sonatype.org/content/repositories/snapshots/
+ central
+ Central Repository Snapshots
+ https://central.sonatype.com/repository/maven-snapshots
diff --git a/cobigen/core-artifact-retriever/src/test/resources/testdata/unittest/MavenMirrorTest/settings.xml b/cobigen/core-artifact-retriever/src/test/resources/testdata/unittest/MavenMirrorTest/settings.xml
index 66b137b004..4c8ba244a6 100644
--- a/cobigen/core-artifact-retriever/src/test/resources/testdata/unittest/MavenMirrorTest/settings.xml
+++ b/cobigen/core-artifact-retriever/src/test/resources/testdata/unittest/MavenMirrorTest/settings.xml
@@ -50,7 +50,7 @@
repo2
Test Repo 2
- https://s01.oss.sonatype.org/content/repositories/snapshots/
+ https://central.sonatype.com/repository/maven-snapshots
@@ -60,7 +60,7 @@
repo3
Test Repo 3
- http://s01.oss.sonatype.org/content/repositories/snapshots/
+ https://central.sonatype.com/repository/maven-snapshots
diff --git a/cobigen/core-artifact-retriever/src/test/resources/testdata/unittest/MavenSettingsTest/settings.xml b/cobigen/core-artifact-retriever/src/test/resources/testdata/unittest/MavenSettingsTest/settings.xml
index 0751afe0e8..a2b2229969 100644
--- a/cobigen/core-artifact-retriever/src/test/resources/testdata/unittest/MavenSettingsTest/settings.xml
+++ b/cobigen/core-artifact-retriever/src/test/resources/testdata/unittest/MavenSettingsTest/settings.xml
@@ -57,12 +57,12 @@
123
devonfw SNAPSHOT releases
- https://s01.oss.sonatype.org/content/repositories/snapshots/
+ https://central.sonatype.com/repository/maven-snapshots
repository
test repository
- https://s01.oss.sonatype.org/content/repositories/snapshots/
+ https://central.sonatype.com/repository/maven-snapshots
@@ -72,7 +72,7 @@
repository1
test repository
- https://s01.oss.sonatype.org/content/repositories/snapshots/
+ https://central.sonatype.com/repository/maven-snapshots
@@ -82,7 +82,7 @@
repository2
test repository
- https://s01.oss.sonatype.org/content/repositories/snapshots/
+ https://central.sonatype.com/repository/maven-snapshots
diff --git a/pom.xml b/pom.xml
index e0f14f7dbf..249b1b3594 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
3.0.1
0.8.8
${skip.deployment}
- 1.6.8
+ 0.6.0
https://devonfw.com/cobigen/updatesite
${updatesite.url}/${updatesite.repository}
@@ -560,17 +560,14 @@
- org.sonatype.plugins
- nexus-staging-maven-plugin
- ${nexus.staging.maven.plugin.version}
+ org.sonatype.central
+ central-publishing-maven-plugin
+ ${central.publishing.maven.plugin.version}
true
- ossrh
- https://s01.oss.sonatype.org/
- false
- false
- Release ${project.groupId}:${project.artifactId}.${project.version}
- ${skip.deployment}
+ central
+ false
+ ${skip.deployment}
@@ -701,24 +698,11 @@
-
-
- ossrh
- Sonartype Releases
- https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
-
-
- ossrh
- Sonartype Snapshots
- https://s01.oss.sonatype.org/content/repositories/snapshots/
-
-
-
- ossrh
- OSSRH Snapshots
- https://s01.oss.sonatype.org/content/repositories/snapshots/
+ central
+ Central Repository Snapshots
+ https://central.sonatype.com/repository/maven-snapshots
true