[Maven]Getting Run time Error :java.lang.NoClassDefFoundError: org/apache/commons/ListUtils
Hi All,
In one of our OSGI component we have used ListUtils class and also required dependencies will also be added in parent and core poms.
But we are getting run time exception "java.lang.NoClassDefFoundError: org/apache/commons/ListUtils" ,particular dependency has been downloaded into .m2 repository.
And i have searched in online not understand that pom definitions of "commons-collections" needs to be modified to make this classes available in my project.
But not sure how to proceed for making these changes,if anyone come across these kind of issue,please help me.
Below dependency has been added in parent and core poms.
Parent:
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2.1</version>
<scope>provided</scope>
</dependency>
Child:
Thanks,
Kishore