Re: How to interpolate a value in a Maven plugin

2018-12-27 Thread Jochen Wiedmann
Thanks, Robert, the reference to the PluginParameterExpressionEvaluator in the maven-help-plugin was what I need. It's a bit clumsy to obtain, but does exactly what I want. Jochen On Thu, Dec 27, 2018 at 9:55 AM Robert Scholte wrote: > > Hi, > > try to find a plugin which does similar things

Re: How to interpolate a value in a Maven plugin

2018-12-27 Thread Maxim Solodovnik
I was able to perform some properties manipulation with inline groovy script similar to this answer: https://stackoverflow.com/a/35731118/3571661 On Thu, 27 Dec 2018 at 15:54, Robert Scholte wrote: > Hi, > > try to find a plugin which does similar things and have a look at its > sources. > In

Re: How to interpolate a value in a Maven plugin

2018-12-27 Thread Robert Scholte
Hi, try to find a plugin which does similar things and have a look at its sources. In this case help:evaluate[1] thanks, Robert [1] https://maven.apache.org/plugins/maven-help-plugin/evaluate-mojo.html On Wed, 26 Dec 2018 22:36:32 +0100, Jochen Wiedmann wrote: Hi, I have written a

Re: How to interpolate a value in a Maven plugin

2018-12-26 Thread Karl Heinz Marbaise
Hi Jochen, On 26/12/18 23:27, Jochen Wiedmann wrote: On Wed, Dec 26, 2018 at 10:54 PM Karl Heinz Marbaise wrote: I have written a Maven plugin, which must interpret values like ${project.artifactId}, and the like. Where exactly do you use them ? Are injected as parameters ? No, they are

Re: How to interpolate a value in a Maven plugin

2018-12-26 Thread Jochen Wiedmann
On Wed, Dec 26, 2018 at 10:54 PM Karl Heinz Marbaise wrote: > > I have written a Maven plugin, which must interpret values like > > ${project.artifactId}, and the like. > > Where exactly do you use them ? Are injected as parameters ? No, they are basically snippets, which have been extracted

Re: How to interpolate a value in a Maven plugin

2018-12-26 Thread Karl Heinz Marbaise
Hi Jochen, On 26/12/18 22:36, Jochen Wiedmann wrote: Hi, I have written a Maven plugin, which must interpret values like ${project.artifactId}, and the like. Where exactly do you use them ? Are injected as parameters ? My first attempt was to use

How to interpolate a value in a Maven plugin

2018-12-26 Thread Jochen Wiedmann
Hi, I have written a Maven plugin, which must interpret values like ${project.artifactId}, and the like. My first attempt was to use project.getProperties().get("project.artifactId"), but that seems to work only for the values, which are configured in the POM's property section. So, what would be