Videos
Issue:
I'm using IntelliJ but had trouble importing org.apache.commons.csv... When hovering over the method it said it "Cannot resolve symbol 'CSVRecord'".
โ ๏ธ The image is after I applied a fix, sorry, before it said create class, not import.
Imgur: The magic of the Internet
Applied Fix:
Download Apache Commons CSV Source
Rename the .xml to a more relevant name
Copy the .xml to my IDE's library
Restart the IDE
I just want to verify whether this is an appropriate way of importing this library. I'm not entirely sure if there's a best practice.
Thank you, awesome Humans! โค๏ธโ๏ธ
Try running the following commands and examine the output:
$ mvn dependency:tree
$ mvn help:effective-pom
Look for commons-lang, maybe something will draw your attention like excludes or dependency overrides. Also, is:
$ mvn dependency:copy-dependencies
copying commons-lang JAR to your target?
Adding following dependency to pom.xml in dependencies tag helped me:
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.1</version>
</dependency>