diff --git a/.github/workflows/broken-links.yml b/.github/workflows/broken-links.yml
index 32f412f..16a3f37 100644
--- a/.github/workflows/broken-links.yml
+++ b/.github/workflows/broken-links.yml
@@ -19,7 +19,7 @@ jobs:
- name: Link Checker
id: lychee
- uses: lycheeverse/lychee-action@1d97d84f0bc547f7b25f4c2170d87d810dc2fb2c # v2
+ uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332 # v2
with:
fail: false # Don't fail on broken links, create an issue instead
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/.idea/externalDependencies.xml b/.idea/externalDependencies.xml
new file mode 100644
index 0000000..78be5b8
--- /dev/null
+++ b/.idea/externalDependencies.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 36b183f..2600965 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+# 1.2.7
+* Migrated deployment to _Sonatype Maven Central Portal_ [#155](https://github.com/xdev-software/standard-maven-template/issues/155)
+* Updated dependencies
+
# 1.2.6
* Updated dependencies
diff --git a/pom.xml b/pom.xml
index b731dee..2411673 100644
--- a/pom.xml
+++ b/pom.xml
@@ -45,7 +45,7 @@
com.puppycrawl.tools
checkstyle
- 10.23.0
+ 10.23.1
@@ -82,12 +82,12 @@
net.sourceforge.pmd
pmd-core
- 7.12.0
+ 7.13.0
net.sourceforge.pmd
pmd-java
- 7.12.0
+ 7.13.0
diff --git a/sessionize-java-client/pom.xml b/sessionize-java-client/pom.xml
index 091840c..36c9173 100644
--- a/sessionize-java-client/pom.xml
+++ b/sessionize-java-client/pom.xml
@@ -56,47 +56,12 @@
-
-
-
- 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/
-
-
-
com.fasterxml.jackson
jackson-bom
- 2.18.3
+ 2.19.0
pom
import
@@ -108,7 +73,7 @@
org.apache.httpcomponents.client5
httpclient5
- 5.4.3
+ 5.4.4
@@ -252,7 +217,7 @@
- ossrh
+ publish-sonatype-central-portal
@@ -296,16 +261,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
@@ -356,7 +318,7 @@
org.openapitools
openapi-generator-maven-plugin
- 7.12.0
+ 7.13.0
@@ -481,7 +443,7 @@
com.puppycrawl.tools
checkstyle
- 10.23.0
+ 10.23.1
@@ -522,12 +484,12 @@
net.sourceforge.pmd
pmd-core
- 7.12.0
+ 7.13.0
net.sourceforge.pmd
pmd-java
- 7.12.0
+ 7.13.0