Search code examples
javamavencsvintellij-ideaopencsv

How to utilise Opencsv annotations within intelliJ IDEA?


I am trying to use Opencsv's annotation functionality but cannot get it working.

I added the import the as per this link (import au.com.bytecode.opencsv.CSVReader; is at the top of my code) and still after selecting the 'annotations' checkbox in the IntelliJ import dialogue the annotations are not found. After checking the module again the annotation checkbox remains empty.

I'd appreciate any help.


Solution

  • Make sure to use the correct dependency: com.opencsv:opencsv:5.0.

    com.opencsv:opencsv:5.0 com.opencsv:opencsv:5.0