Yearly Archives: 2007

Pin the Snapshot Dependency Versions in Your POM


By
Tim O'Brien

Occasionally, you might want to pin the versions of snapshot dependencies in your pom.xml to the most recent unique version (referenced by timestamp/buildnumber instead of “-SNAPSHOT”). To show how easy it is to do this, I’ve written a tiny little plugin to accomplish it. You can grab it from here: http://www.commonjava.org/~jdcasey/maven-misc/plugins/snapshot-pin-maven-plugin.zip, or wait a little […]

Continue reading...

Abstraction-Addicted Ant


By
Tim O'Brien

I’ve been staring at quite a few Ant scripts lately, trying to find patterns that I can convert to Maven plugin configurations. The one thing that stands out apart from the general gunkiness of Ant scripts is that Ant – at least in its older versions – forces you to the extremes of abstraction for […]

Continue reading...

HOW-TO: Merge sub-items from parent POM to child POM in a Maven plugin configuration


June 7, 2007 By
Tim O'Brien

Cross-Posted from my buildchimp blog: I just ran into a bug report about this, so I thought it might be a good idea to post about it. The bug report detailed a case where the following configurations were not being merged correctly: Parent POM: configuration items itemone/item itemtwo/item /items /configuration Child POM: configuration items itemthree/item […]

Continue reading...

HOW-TO: Merge sub-items from parent POM to child POM in a Maven plugin configuration


By
John Casey

Cross-Posted from my buildchimp blog: I just ran into a bug report about this, so I thought it might be a good idea to post about it. The bug report detailed a case where the following configurations were not being merged correctly: Parent POM: <configuration> <items> <item>one</item> <item>two</item> </items> </configuration> Child POM: <configuration> <items> <item>three</item> […]

Continue reading...

Integration-Testing a Book


April 27, 2007 By
Tim O'Brien

One of the toughest things to do when writing technical documentation is to keep your examples working through edit after edit, and change after change in the APIs you describe. Starting with Maven: The Definitive Guide, we're taking a slightly unusual approach to this: we're going to subject the contents of our book to integration-testing. […]

Continue reading...