AJPerez
AJPerez

Reputation: 3595

Can I force Maven to verify downloaded jars?

I'm having a lot of problems lately with Maven 3.5.0 downloading corrupted JARs.

I don't know why, it could be a problem with my workplace's network, the repos we use, or just my computer. Anyway, usually it's easy to solve them, I just need to delete the jar from .m2/repository and force a new download. But it's making me waste a lot of time, specially because sometimes I can't tell there is a problem at all until I'm already deploying the war to the server.

Is there any command prompt, or a parameter I could add to my settings file, so that Maven would check the integrity of each downloaded jar and pom, and redownload them automatically if needed?

Upvotes: 2

Views: 352

Answers (1)

funfried
funfried

Reputation: 605

As far as I know there were some bugs in Maven 3.5.0 that causes corrupt jars to be uploaded to your Maven repository. I would suggest you update to the latest Maven 3.5.x version and look if that fixes your problem, because I think Maven always verifies the downloaded jars.

Upvotes: 1

Related Questions