You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Geoffrey <jc...@hotmail.com> on 2005/10/19 17:05:03 UTC

[m2 & m1]Inject POM values into application

What is the best practice for injecting POM values into the application?
For example, I want my application to get it's version (in pom.xml), 
releaseDate and productionMode (in settings.xml) variables feeded in the 
build process.

In m1 I made a general resources template and I replaced tokens in it 
and put a copy of that file in the target/classes after the resources 
where copied. I did this in maven.xml of course.
Surely there must be a better way in maven 2?

Thanks for any and all help.

-- 
With kind regards,
Geoffrey De Smet


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org