Sudhanshu Raman
Sudhanshu Raman

Reputation: 21

Unable to add maven dependency for Apache Commons-csv

Hi All i am trying to add Apache commons-csv version 1.8 dependency for my spring boot project but getting following error. Dependency 'org.apache.commons:commons-csv:1.8' not found. Also i am using Java 14.For your reference here i am also pasting my pom.xml.

<properties>
    <java.version>14</java.version>
</properties>

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-thymeleaf</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
    <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-csv</artifactId>
        <version>1.8</version>
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <scope>runtime</scope>
        <optional>true</optional>
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
        <exclusions>
            <exclusion>
                <groupId>org.junit.vintage</groupId>
                <artifactId>junit-vintage-engine</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

Upvotes: 1

Views: 7272

Answers (4)

rax
rax

Reputation: 3

  • Right click on project

  • Project->maven->reimport

Upvotes: 0

Cliqxe
Cliqxe

Reputation: 31

Right click on your project folder -> Maven -> Reload Project.

Upvotes: 1

Dremuchiy
Dremuchiy

Reputation: 91

For Intellij Idea: go to Maven(on right side) and press "Reimport All Maven Project".

Upvotes: 9

Theri Muthu Selvam
Theri Muthu Selvam

Reputation: 162

In my case I just upgraded the version to <version>1.10</version> from <version>1.8</version>

<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-csv</artifactId>
    <version>1.10.0</version>
</dependency>

Upvotes: 0

Related Questions