Re: Slightly more advanced resource filtering (templating)?

2017-01-03 Thread org . apache . maven . user
On 2017-01-03T19:32:59 +0100 Guillaume Boué wrote: > It sounds like you're looking for the parse-version goal of the > build-helper-maven-plugin: On 2017-01-03T19:36:16 +0100 Karl Heinz Marbaise wrote: > Hi, > > have you taken a look at the

Re: Slightly more advanced resource filtering (templating)?

2017-01-03 Thread Curtis Rueden
Hi, In addition to the suggestion of others to use parse-version, the build-helper-maven-plugin also has the regex-property goal, which lets you assign a property based on a regex. Here is an example: sanitize-version regex-property sanitizedVersion ${project.version}

Re: Slightly more advanced resource filtering (templating)?

2017-01-03 Thread Karl Heinz Marbaise
Hi, have you taken a look at the build-helper-maven-plugin which has a goal parse-version which will result in appropriate properties which than can be used to achieve what you like. Kind regards Karl Heinz Marbaise http://www.mojohaus.org/build-helper-maven-plugin/parse-version-mojo.html

Re: Slightly more advanced resource filtering (templating)?

2017-01-03 Thread Guillaume Boué
Hi, It sounds like you're looking for the parse-version goal of the build-helper-maven-plugin: http://www.mojohaus.org/build-helper-maven-plugin/parse-version-mojo.html. It can decompose the project version into several Maven properties. There is an example of usage here