开发者

Maven : Determine parent POM

I have a whole bunch of mavenised projects, and I want to 开发者_JAVA百科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.


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.


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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜