Can someone help me understand if we need to add any more maven dependency when using opencsv in AEM?
Thanks @arpitv27529355 for helping me fix this issue and Thank you @albinissac for the valuable comments. Adding the below dependencies in import-packages helped me resolve my issue. My bundles are up and running now.
After that, verify the <Embed-Dependency> tag of maven-bundle-plugin [You can either include all the dependencies or you can configure to not include specific ones]. The scope attribute lets you configure which dependency jars you want to include based on their include scope. You should not include the dependencies which are only needed for compile and for the test.
Below is the example to add the com.opencsv to the embed dependency.