Skip to content

Commit 04b1edb

Browse files
committed
Disable Surefire system classloader in CI
Add -Dsurefire.useSystemClassLoader=false to the Maven test invocation in the GitHub Actions workflow. This disables Surefire's system classloader to avoid classloader-related test failures and improve compatibility when running forked tests in CI.
1 parent cf31a58 commit 04b1edb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/maven-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
--update-snapshots
4444
--file pom.xml
4545
-Drevision=0.0.1-SNAPSHOT
46+
-Dsurefire.useSystemClassLoader=false
4647
test
4748
--activate-profiles test,coverage,${{ matrix.maven-profile-spring-framework }}
4849

0 commit comments

Comments
 (0)