Well maybe, Why do you want the version in the code itself?
runtime resolution ------------------------- Would it be sufficent (or perhaps better) to get it at runtime rather than having it compiled in? The maven jar plugin writes a file called pom.properties in META-INF/maven/groupid/artifactid/pom.properties this contains the version I used to do all sorts of replacements in the far distant past when using ant. Since moving to maven I have not really found many scenarios where that was the best option. other options ----------------- i can't see any being able to specify the tokens used for identifying variables to replace or being able to disable the standard filters seem like great ides... i would be pretty easy to patch the resources plugin for this. On Sun, 06 Jul 2008 02:21:28 Peter Horlock wrote: > Noone? > > Please, there must be someone able to answer this?! > > > Thanks, > > Peter > > 2008/7/3 Peter Horlock <[EMAIL PROTECTED]>: > > Hi, > > > > I want to let Maven / the Resource plugin ( > > http://maven.apache.org/plugins/maven-resources-plugin/examples/include-e > >xclude.html ) > > > > parse my source code to replace {project.version} with the current > > version of the project as defined in the pom. > > This works great, but - in JSTL, as well as in OpenLazlo, ${variableName} > > is also a variable of the language itself - > > therefore, this leads to collisions - for example, one of our developers > > used a variable named ${parent} which then was filtered by Maven and > > booom the code was broken. Yada yada YAda! > > > > => Is there a way of telling Maven to JUST filter certain properties? I > > know I could tell it to just filter certain files, > > but > > a) a developer could then STILL use ${parent} as a variable in this very > > file > > b) whenever I wanted a new file to be filtered, I would have to add this > > file to the filter section... > > > > Thanks a lot folks, > > > > Peter -- Michael McCallum Enterprise Engineer mailto:[EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
