tags:

views:

43

answers:

2

Hi there,

I have a whole bunch of mavenised projects, and I want to check that each project has the correct version of a parent pom.

One way could be to checkout each project in turn, and then have a script that reads the parent section.

Or is these some way of determining this from looking at the repository?

Has anyone else had to do something similar?

Thanks.

+2  A: 

Not a direct answer but, since you asked for something similar, I've already used the Versions Maven Plugin and its versions:update-parent (check the Updating the Parent version example) to align parent versions. Maybe it could be useful in your case too.

Pascal Thivent
Thanks Pascal. This may be useful to ease the pain of ensuring all the projects get updated once they have been audited.
toolkit
A: 

In the end, I had to hack it:

Lots of perl (ab)use to call svn list, grep for my poms, svn export, then XML::XPath.

Ugly ;-)

(Fisheye or VoilaSVN might have helped a bit, but I don't think so)

toolkit