On Tue, May 20, 2008 at 1:39 AM, <[EMAIL PROTECTED]> wrote: > Is it possible to actually take a version number from a property > file and have that used in the POM rather than the other way around?
Not natively. But you could write a plugin to do it or use the Properties Plugin from the Codehaus sandbox: https://svn.codehaus.org/mojo/trunk/sandbox/properties-maven-plugin/ "The Properties Maven Plugin is here to make life a little easier when dealing with properties. It provides goals to read and write properties from files." > Speaking of which how/can we get the version number in the pom > written to a property file that is then used at runtime? You just need to set up a file with the token ${version} in it and tell Maven to filter it during resource processing. Alternatively, it seems that the Properties plugin would also handle this. Wayne --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
