Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.22.1
-
None
-
None
Description
See issue [1], but in short: latest Java8 on Ubuntu/Debian/Mint family of Linuxes (am on Mint, Ubuntu derivative) contains this patch [3], and eforces Manifest class path entries to be relative, as defined in [2].
Hence, surefire booter and rest of Maven classpath, that uses absolute URLs are simply discarded.
Example error:
# Created at 2018-10-30T21:34:43.339 Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter
using the new property -Djdk.net.URLClassPath.disableClassPathURLCheck=debug clearly shows that all the entries from the surefire JAR are simply ignored.
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911925
[2] https://docs.oracle.com/javase/8/docs/technotes/guides/jar/jar.html#classpath
Attachments
Issue Links
- breaks
-
RATIS-405 Upgrade Maven Surefire plugin to 3.0.0-M1
- Resolved
- is duplicated by
-
SUREFIRE-1541 SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
- Closed
-
SUREFIRE-1589 mvn test does not run any test error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter
- Closed
- is related to
-
GUACAMOLE-656 Docker build of guacamole-client broken by recent update to maven:3-jdk-8
- Resolved
-
HADOOP-15916 Upgrade Maven Surefire plugin to 3.0.0-M1
- Resolved
-
SUREFIRE-1593 3.0.0-M1 produces invalid code sources on Windows
- Closed
- links to