maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey <jcs_gde_li...@hotmail.com>
Subject [m2 & m1]Inject POM values into application
Date Wed, 19 Oct 2005 15:05:03 GMT
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


Mime
View raw message