Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
Level 1
Level 2
Melden Sie sich an, um alle Badges zu sehen
Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
Hi Team,
Please help me with the below issue.
After upgrading GSON maven version from 2.8.2 to 2.10.1, I can successfully create a gson object in a normal java class.But Junit test cases are failing due to java.lang.NoClassDefFoundError.
Below is my pom.xml
<dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.10.1</version> <scope>provided</scope> </dependency>
Thanks in advance
Zugriffe
Antworten
Likes gesamt
@ashwiniv5325199 Once try deleting the old corresponding dependency file in .m2 folder and try building it once again
You can try to take a look at the Uber Jar, and use that version instead.
@ashwiniv5325199 You can try deleting the respective target folders and re-build your test module, as it might not be able to find the class at runtime.
@ashwiniv5325199
Hi,
Did you get any solution?
Zugriffe
Antworten
Likes gesamt
Zugriffe
Likes
Antworten