steveloughran commented on PR #5295:
URL: https://github.com/apache/hadoop/pull/5295#issuecomment-1439816394

   ```
   Caused by: java.lang.ClassNotFoundException: org.junit.jupiter.api.Assertions
        at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        ... 14 more
   ```
   
   problem here is that maven doesn't import transitive dependencies from a 
-test JAR, so if one module (mapreduce-client) adds a new mandatory dependency 
(here, junit jupiter stuff, maybe junit-mockito) then everything which imports 
the suite and uses it will break. We had that when we added assertJ tests to 
hadoop-common fs contract tests.
   
   Fix here is pom changes everywhere the test jar is referenced.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to