简体   繁体   中英

Not able to run my eclipse maven project- eclipse not recognising mySql-connector-java

I am nor able to run my eclipse maven project. I keep getting the following error in the problems tab

Archive for required library: 'C:/Users/user/.m2/repository/mysql/mysql-connector-java/5.1.38/mysql-connector-java-5.1.38.jar' in project 'Inspirations' cannot be read or is not a valid ZIP file

In my pom.xml file I have defined the dependency as

<dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>5.1.38</version>
        </dependency>

You can try delete mysql folder in your repository and go to eclipse -> Maven --> Update Project. If not working, i thinh u can try another version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM