Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

AEM 6.5 GSON version upgrade from 2.8.2 to 2.10.1


Level 2

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


 Thanks in advance


3 Replies


Community Advisor

@ashwiniv5325199  Once try deleting the old corresponding dependency file in .m2 folder and try building it once again


Community Advisor

You can try to take a look at the Uber Jar, and use that version instead.


Community Advisor

@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.