Could You confirm that project pass tests with Maven 3.9.9 AND Java 21? Sylwester
pon., 7 kwi 2025, 10:39 użytkownik Bianca Batsch < bianca.bat...@signal-iduna.de> napisał: > 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: > > [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 > ------------------------------- > [ERROR] XmlSerializerTest.testMarshalObjectOutputStream:43 » 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 > ------------------------------- > [ERROR] XmlSerializerTest.testMarshalObjectWriter:61 » 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 > ------------------------------- > [ERROR] CacheTest.before:47 » NoClassDefFound Could not initialize class > org.mockito.internal.creation.cglib.ClassImposterizer$3 > [ERROR] CacheTest.before:47 » NoClassDefFound Could not initialize class > org.mockito.internal.creation.cglib.ClassImposterizer$3 > [ERROR] CacheTest.before:47 » NoClassDefFound Could not initialize class > org.mockito.internal.creation.cglib.ClassImposterizer$3 > [ERROR] CacheTest.before:47 » NoClassDefFound Could not initialize class > org.mockito.internal.creation.cglib.ClassImposterizer$3 > [ERROR] CacheTest.before:47 » NoClassDefFound Could not initialize class > org.mockito.internal.creation.cglib.ClassImposterizer$3 > [ERROR] CacheTest.before:47 » NoClassDefFound Could not initialize class > org.mockito.internal.creation.cglib.ClassImposterizer$3 > [ERROR] CacheTest.before:47 » ExceptionInInitializer > [ERROR] CacheTest.before:47 » NoClassDefFound Could not initialize class > org.mockito.internal.creation.cglib.ClassImposterizer$3 > [ERROR] CacheTest.before:47 » NoClassDefFound Could not initialize class > org.mockito.internal.creation.cglib.ClassImposterizer$3 > [ERROR] CacheTest.before:47 » NoClassDefFound Could not initialize class > org.mockito.internal.creation.cglib.ClassImposterizer$3 > [ERROR] CacheTest.before:47 » NoClassDefFound Could not initialize class > org.mockito.internal.creation.cglib.ClassImposterizer$3 > [ERROR] CacheTest.before:47 » NoClassDefFound Could not initialize class > org.mockito.internal.creation.cglib.ClassImposterizer$3 > [ERROR] MapToBeanTest.testGetAnzahlDynamischeVorgabe:279 » > NoClassDefFound Could not initialize class > org.mockito.internal.creation.cglib.ClassImposterizer$3 > [ERROR] MapToBeanTest.testGetAnzahlFesteVorgabe:268 » NoClassDefFound > Could not initialize class > org.mockito.internal.creation.cglib.ClassImposterizer$3 > [ERROR] MapToBeanTest.testGetAnzahlKeineVorgabe:290 » NoClassDefFound > Could not initialize class > org.mockito.internal.creation.cglib.ClassImposterizer$3 > > We use the following dependencies (just put in here the ones, which I see > in the stacktrace): > > <dependency> > <groupId>com.thoughtworks.xstream</groupId> > <artifactId>xstream</artifactId> > <version>1.4.21</version> > </dependency> > > <dependency> > <groupId>org.mockito</groupId> > <artifactId>mockito-all</artifactId> > <version>1.10.19</version> > <scope>test</scope> > </dependency> > > <dependency> > <groupId>org.mockito</groupId> > <artifactId>mockito-core</artifactId> > <version>1.10.19</version> > <scope>test</scope> > </dependency> > > Do I need to adjust something more to the seetings? > > Best regards > Bianca > SIGNAL IDUNA Krankenversicherung a. G., Sitz: Dortmund, HR B 2405, AG > Dortmund > SIGNAL IDUNA Lebensversicherung a. G., Sitz: Hamburg, HR B 2740, AG Hamburg > SIGNAL IDUNA Allgemeine Versicherung AG, Sitz: Dortmund, HR B 19108, AG > Dortmund > Vorstände: Ulrich Leitermann (Vorsitzender), > Martin Berger, Dr. Stefan Lemke, Johannes Rath, Daniela Rode, > Fabian Schneider, Torsten Uhlig, Clemens Vatter > Vorsitzender der Aufsichtsräte: Reinhold Schulte > SIGNAL IDUNA Gruppe Hauptverwaltungen, > 44121 Dortmund, Hausanschrift: Joseph-Scherer-Str. 3, 44139 Dortmund > <https://www.google.com/maps/search/Joseph-Scherer-Str.+3,+44139+Dortmund?entry=gmail&source=g> > 20351 Hamburg, Hausanschrift: Neue Rabenstraße 15-19, 20354 > <https://www.google.com/maps/search/Neue+Rabenstra%C3%9Fe+15-19,+20354?entry=gmail&source=g> > Hamburg > www.signal-iduna.de, i...@signal-iduna.de > > http://www.dortmund.ihk24.de - www.business-on.de/hamburg - www.hk24.de >