AEM 6.5 - Can't import dependency to my AEM project
Hello there.
I'm totally new to this world, same for Maven/Java so please be kind with me. I'm trying to import Opencsv to my project since I've to read some csv files and I saw it's easy to implement. I tell you what I'm currently doing to import it:
- Went to Maven online repository > Opencsv
- Added this snippet
in my core pom.xml
- Wrote some code to read my csv
Tried to build but I got this error:
[ERROR] The analyser found the following errors for author and publish :
[ERROR] [api-regions-exportsimports] it.censored:aem-censored-project.core:1.0.0-SNAPSHOT: Bundle aem-censored-project.core:1.0.0-SNAPSHOT is importing package(s) [com.opencsv.exceptions, com.opencsv, com.opencsv.bean] in start level 20 but no bundle is exporting these for that start level. (it.censored:aem-censored-project.all:1.0.0-SNAPSHOT).
At first I thought maybe this dep was not compatible with my project and I tried to add a similar dep but same result. Can you help me? What am I doing wrong? I can screenshare or post more info if you need it. Thanks