The GitHub Actions job "Java CI" on commons-vfs.git/feature/junit5-migration 
has failed.
Run started by GitHub user gnodet (triggered by gnodet).

Head commit for run:
0598295b0e04d690738799b843b2062f9bb7465a / Guillaume Nodet <[email protected]>
Exclude JUnit 4 from Hadoop dependencies in HDFS module

The HDFS tests were failing on CI with NoClassDefFoundError for org.junit.Assert
because Hadoop dependencies were bringing in JUnit 4 as a transitive dependency.

Since we've migrated to JUnit 5, we need to exclude JUnit 4 from all Hadoop
dependencies to prevent classpath conflicts.

Changes:
- Added JUnit 4 exclusions to hadoop-hdfs-client dependency
- Added JUnit 4 exclusions to hadoop-common dependency (both regular and 
test-jar)
- Added JUnit 4 exclusions to hadoop-hdfs dependency (both regular and test-jar)

This ensures that only JUnit 5 (Jupiter) is on the classpath during test 
execution.

Note: The HDFS module has a pre-existing Maven dependency resolution issue
on some environments that prevents compilation. This is unrelated to the
JUnit migration and exists on the master branch.

Report URL: https://github.com/apache/commons-vfs/actions/runs/18316116680

With regards,
GitHub Actions via GitBox

Reply via email to