I have done this by setting up a properties file that gets filtered at build time. Then, I use that properties file in a Spring PlaceholderConfigurer to get the value injected where I need it.
James Russo wrote: > Hello, > > New maven user here. Really am liking it, just trying to get > project back online and running after switching from ant.. Is there > any standard maven way to inject maven variables (like version) into > source code, prior to compile? Is this maybe were I should just > leverage my existing any scripts to accomplish the task? > > thanks, > > -jr > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org