Thursday, August 9, 2012

Maven and property files

After so many years (since 2004, indeed when the first version of Maven 2 was still in development), I am still learning new stuff every day. For example, so far I was always specifying properties in my POM file. But you can use external property files! There is a Maven Properties Plugin over at Mojo with a goal "properties:read-project-properties".

2 comments:

Robert Burrell Donkin said...

Glad you're back :-)

Rob

Anonymous said...

yeah but you can't use that in coordinate version numbers because the reactor resolves before the lifecycle and plugin is initialised. Still grumpy.
It looks like a limitation of java vm. You can have -D= but not -D