Skip to content

Commit e40dafa

Browse files
committed
Add missing Maven switches from previous release pipeline
1 parent 2527c1d commit e40dafa

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release-workflow.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
mvn versions:commit
8585
8686
# Actual build of core SDK
87-
mvn -B -pl '!io.openmanufacturing:bamm-cli' clean deploy -Dmaven.wagon.httpconnectionManager.ttlSeconds=60 -DaltDeploymentRepository=local::default::file://nexus-staging
87+
mvn -B -pl '!io.openmanufacturing:bamm-cli' clean deploy -Dmaven.wagon.httpconnectionManager.ttlSeconds=60 -DaltDeploymentRepository=local::default::file://nexus-staging -Psign
8888
# Build of CLI
8989
cd tools/bamm-cli
9090
mvn -B clean verify -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
@@ -207,7 +207,11 @@ jobs:
207207
- name: Release to OSSRH/Maven Central
208208
if: ${{ !contains( github.event.inputs.release_version, '-M' ) }}
209209
run: |
210-
mvn nexus-staging:deploy-staged-repository -DrepositoryDirectory=nexus-staging
210+
mvn nexus-staging:deploy-staged-repository -DrepositoryDirectory=nexus-staging -Prelease-build
211+
env:
212+
# Workaround for https://issues.sonatype.org/browse/OSSRH-66257
213+
# as described in https://stackoverflow.com/a/70157413
214+
MAVEN_OPTS: --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED
211215

212216
- name: Create release commit
213217
continue-on-error: true

0 commit comments

Comments
 (0)