Renat Gatin
Renat Gatin

Reputation: 6394

Spring boot The project cannot be built until build path errors are resolved

We have 100% working project.

It works perfectly on 2 Windows computers, but when I clone it from repo to Mac - OS El Capitan, Eclipse with STS plugin - I can not built it, I get this error:

Archive for required library: '/Users/{username}/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar' in project '{project name}' cannot be read or is not a valid ZIP file {project name} 

In Maven pom.xml I have added required dependency, but it still doesn't solve the problem:

<dependency>
    <groupId>org.bouncycastle</groupId>
    <artifactId>bcprov-jdk15on</artifactId>
    <version>1.47</version>
</dependency>

Any advice will be appreciated!

Upvotes: 4

Views: 3292

Answers (1)

Elliott Frisch
Elliott Frisch

Reputation: 201409

Delete /Users/{username}/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar, and download "bcprov-jdk15on-1.47.jar" (and verify that it downloaded correctly) then place it there manually.

Upvotes: 6

Related Questions