Skip to content

Commit fa97aaf

Browse files
authored
Merge pull request #330 from bci-oss/update-nexus-staging-maven-plugin
Update nexus-staging-maven-plugin
2 parents 61d9881 + 11f9a91 commit fa97aaf

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

.github/workflows/release-workflow.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ jobs:
183183
tools/samm-cli/target/lib/
184184
185185
release:
186+
name: Release
186187
needs: [build-linux, build-windows]
187188
runs-on: ubuntu-latest
188189
steps:
@@ -220,7 +221,14 @@ jobs:
220221
- name: Release to OSSRH/Maven Central
221222
if: ${{ !contains( github.event.inputs.release_version, '-M' ) }}
222223
run: |
223-
mvn nexus-staging:deploy-staged-repository -DrepositoryDirectory=nexus-staging -Prelease-build
224+
mkdir deploy
225+
mv nexus-staging deploy
226+
cd deploy
227+
mvn org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:deploy-staged-repository \
228+
-DnexusUrl=https://oss.sonatype.org/ \
229+
-DserverId=ossrh \
230+
-DrepositoryDirectory=nexus-staging \
231+
-DstagingProfileId=org.eclipse.esmf
224232
env:
225233
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
226234
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,6 @@ core/esmf-aspect-model-jackson/src/main/java/org/eclipse/esmf/test
155155
.attach_pid*
156156

157157
# MacOS
158-
.DS_Store
158+
.DS_Store
159+
160+
/deploy

pom.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
<maven-surefire-plugin-version>3.0.0-M8</maven-surefire-plugin-version>
134134
<maven-surefire-report-plugin-version>3.0.0-M8</maven-surefire-report-plugin-version>
135135
<native-maven-plugin-version>0.9.10</native-maven-plugin-version>
136-
<nexus-staging-maven-plugin-version>1.6.9</nexus-staging-maven-plugin-version>
136+
<nexus-staging-maven-plugin-version>1.6.13</nexus-staging-maven-plugin-version>
137137

138138
<!-- General settings -->
139139
<testreports.surefire>surefire-report</testreports.surefire>
@@ -728,7 +728,7 @@
728728
<repository>
729729
<id>ossrh</id>
730730
<name>OSSRH</name>
731-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
731+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
732732
</repository>
733733
</distributionManagement>
734734
<build>
@@ -746,7 +746,8 @@
746746
<extensions>true</extensions>
747747
<configuration>
748748
<serverId>ossrh</serverId>
749-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
749+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
750+
<stagingProfileId>org.eclipse.esmf</stagingProfileId>
750751
<autoReleaseAfterClose>false</autoReleaseAfterClose>
751752
</configuration>
752753
</plugin>

0 commit comments

Comments
 (0)