Sebastien Diot
Sebastien Diot

Reputation: 7359

Resolving Maven effective dependencies for a specific point-in-time

I'm writing a “compiler plugin”, and using Maven as build system. About one week ago, I had a (first) working version, and checked the code in. If I rebuild that version today, it doesn't work anymore, so my first suspicion is a change in the version of some (indirect?) dependency. Is there a Maven plugin, that can compare the effective dependencies of a POM between two different points in time (now, and “one week ago”)?

Expressed another way, is it possible to find out when a particular version became available in a Maven repo?

Upvotes: 2

Views: 108

Answers (1)

Sebastien Diot
Sebastien Diot

Reputation: 7359

Well, it's not really what I was looking for, but assuming there is no way to actually do it, the closest I found was this; Check out the date of the files in the local Maven repo:

cd <user-home>/.m2/repository

$ find . -type f -name "*.jar" -mtime -<how-many-days-ago-did-it-still-work>

And compare this to "mvn dependency:list"

In my case, it seems nothing relevant (apart from my own project jars) changed, so I can probably take Maven off the "suspect list".

Upvotes: 1

Related Questions