diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 8bd0f3c..2cb3393 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -121,22 +121,22 @@ jobs:
git config --global user.name "GitHub Actions"
git pull
- - name: Set up JDK OSSRH
+ - name: Set up JDK
uses: actions/setup-java@v4
with: # running setup-java again overwrites the settings.xml
java-version: '17'
distribution: 'temurin'
- server-id: ossrh
+ server-id: sonatype-central-portal
server-username: MAVEN_CENTRAL_USERNAME
server-password: MAVEN_CENTRAL_TOKEN
gpg-passphrase: MAVEN_GPG_PASSPHRASE
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
- - name: Publish to OSSRH
- run: ../mvnw -B deploy -Possrh -DskipTests
+ - name: Publish to Central Portal
+ run: ../mvnw -B deploy -P publish-sonatype-central-portal -DskipTests
env:
- MAVEN_CENTRAL_USERNAME: ${{ secrets.S01_OSS_SONATYPE_MAVEN_USERNAME }}
- MAVEN_CENTRAL_TOKEN: ${{ secrets.S01_OSS_SONATYPE_MAVEN_TOKEN }}
+ MAVEN_CENTRAL_USERNAME: ${{ secrets.SONATYPE_MAVEN_CENTRAL_PORTAL_USERNAME }}
+ MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_MAVEN_CENTRAL_PORTAL_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml
index 03f5339..8a85891 100644
--- a/.github/workflows/test-deploy.yml
+++ b/.github/workflows/test-deploy.yml
@@ -13,21 +13,21 @@ jobs:
steps:
- uses: actions/checkout@v4
- - name: Set up JDK OSSRH
+ - name: Set up JDK
uses: actions/setup-java@v4
with: # running setup-java again overwrites the settings.xml
distribution: 'temurin'
java-version: '17'
- server-id: ossrh
+ server-id: sonatype-central-portal
server-username: MAVEN_CENTRAL_USERNAME
server-password: MAVEN_CENTRAL_TOKEN
gpg-passphrase: MAVEN_GPG_PASSPHRASE
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
- - name: Publish to OSSRH
- run: ../mvnw -B deploy -Possrh -DskipTests
+ - name: Publish to Central Portal
+ run: ../mvnw -B deploy -P publish-sonatype-central-portal -DskipTests
working-directory: ${{ env.PRIMARY_MAVEN_MODULE }}
env:
- MAVEN_CENTRAL_USERNAME: ${{ secrets.S01_OSS_SONATYPE_MAVEN_USERNAME }}
- MAVEN_CENTRAL_TOKEN: ${{ secrets.S01_OSS_SONATYPE_MAVEN_TOKEN }}
+ MAVEN_CENTRAL_USERNAME: ${{ secrets.SONATYPE_MAVEN_CENTRAL_PORTAL_USERNAME }}
+ MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_MAVEN_CENTRAL_PORTAL_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
diff --git a/.gitignore b/.gitignore
index 116a656..5c85054 100644
--- a/.gitignore
+++ b/.gitignore
@@ -71,6 +71,7 @@ hs_err_pid*
.idea/*
!.idea/saveactions_settings.xml
!.idea/checkstyle-idea.xml
+!.idea/externalDependencies.xml
!.idea/inspectionProfiles/
.idea/inspectionProfiles/*
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 14ff7c2..547b515 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+# 1.2.1
+* Migrated deployment to _Sonatype Maven Central Portal_ [#155](https://github.com/xdev-software/standard-maven-template/issues/155)
+* Updated dependencies
+
# 1.2.0
* Remove testcontainer's dependency [onto JUnit 4](https://github.com/xdev-software/testcontainers-junit4-mock/?tab=readme-ov-file)
* Update default Selenium version to ``4.32.0``
diff --git a/testcontainers-selenium/pom.xml b/testcontainers-selenium/pom.xml
index e00f584..a82e7ea 100644
--- a/testcontainers-selenium/pom.xml
+++ b/testcontainers-selenium/pom.xml
@@ -52,41 +52,6 @@
true
-
-
-
- central
- https://repo.maven.apache.org/maven2
-
- false
-
-
-
-
-
-
-
- central
- https://repo.maven.apache.org/maven2
-
- false
-
-
-
-
-
-
- ossrh
- https://s01.oss.sonatype.org/content/repositories/snapshots
-
-
- ossrh
- https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
-
-
-
org.testcontainers
@@ -293,7 +258,7 @@
- ossrh
+ publish-sonatype-central-portal
@@ -337,16 +302,13 @@
- org.sonatype.plugins
- nexus-staging-maven-plugin
- 1.7.0
+ org.sonatype.central
+ central-publishing-maven-plugin
+ 0.7.0
true
- ossrh
- https://s01.oss.sonatype.org/
-
- 30
- true
+ sonatype-central-portal
+ true