Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opencsv import cannot be resolved

Tags:

java

csv

maven

Anyone has a clue why I cannot use opencsv?

        <dependency>
            <groupId>net.sf.opencsv</groupId>
            <artifactId>opencsv</artifactId>
            <version>2.3</version>
        </dependency>

import au.com.bytecode.opencsv.CSVReader;

eclipse: "The import au cannot be resolved"

like image 661
membersound Avatar asked Jul 19 '26 11:07

membersound


1 Answers

Unfortunately, Eclipse support for Maven is far from perfect and some weird things sometimes happen. First of all, ensure that you're using m2e, at least 1.0 version. Second thing, regenerate Eclipse project files by Maven -> Update Project Configuration.... It must work then.

like image 115
Michał Kalinowski Avatar answered Jul 22 '26 00:07

Michał Kalinowski



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!