Hi Bianca, On Monday, 7th April 2025, 10:12:55 CEST Bianca Batsch wrote: > Hello, > > I just tried the RC3 on our project here (367 modules and counting). > We have a BOM-structured project and I am not finished yet, to ‚remove‘ all > transient dependencies properly, but I am on it. > > We need to use Java 8 and have maven 3.9.9 in the project. I just switched > to the following settings: $ mvn --version > Apache Maven 4.0.0-rc-3 (3952d00ce65df6753b63a51e86b1f626c55a8df2) > Maven home: C:\dev\tools\apache-maven-4.0.0-rc-3 > Java version: 21, vendor: Eclipse Adoptium, runtime: C:\dev\tools\jdk-21-35 > Default locale: de_DE, platform encoding: UTF-8 > OS name: "windows 11", version: "10.0", arch: "amd64", family: "winnt" > > I get the following Errors:
You have to configure the Surefire plugin to set argLine options for the JVM with the appropriate --open-opens options and to run the tests in a forked JVM (otherwise the argLine configuration is not picked up). > [ERROR] Errors: > [ERROR] XmlSerializerTest.testMarshalObject:76 » Conversion No converter > available ---- Debugging information ---- > message : No converter available > type : java.util.Arrays$ArrayList > converter : > com.thoughtworks.xstream.converters.reflection.ReflectionConverter > message[1] : Unable to make field protected transient int > java.util.AbstractList.modCount accessible: module java.base does not > "opens java.util" to unnamed module @4909b8da Here it requires "--add-opens java.base/java.util=ALL-UNNAMED". Depending on your use case you might have to add more of it. [snip] > [ERROR] CacheTest.before:47 » NoClassDefFound Could not initialize class > org.mockito.internal.creation.cglib.ClassImposterizer$3 [ERROR] While the information for XStream is visible on the console, you might have to guess more modules to open to solve the issues above for Mockito/CGLIB. [snip] Regards, Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org