Skip to content

Commit a31eee7

Browse files
committed
Update maven-publish workflow: surefire & models
Add -Dsurefire.useSystemClassLoader=false to the Maven deploy invocation to avoid Surefire classloader issues during CI runs. Also grant the job read permission for "models" to satisfy workflow permission requirements for the publish job.
1 parent 133a581 commit a31eee7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/maven-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
--update-snapshots
5252
--file pom.xml
5353
-Drevision=${{ inputs.revision }}
54+
-Dsurefire.useSystemClassLoader=false
5455
-Dgpg.skip=true
5556
deploy
5657
--activate-profiles publish,ci
@@ -66,6 +67,7 @@ jobs:
6667
needs: build
6768
permissions:
6869
contents: write
70+
models: read
6971
steps:
7072
- name: Checkout Source
7173
uses: actions/checkout@v5

0 commit comments

Comments
 (0)