You're right.
We need to have a dedicated tool to extract variables (such as version) in
Maven pom.
The tool must be Maven aware (to get as you noticed Maven version in the
parent pom).
And the tool must be self-contained (without to require an external Maven
installation).


On Wed, Mar 28, 2012 at 9:58 PM, Kirill Evstigneev
<k.evstign...@gmail.com>wrote:

> On Tuesday, March 27, 2012 12:59:28 AM UTC+4, gboissinot wrote:
>
>> On Mon, Mar 26, 2012 at 6:18 PM, Baron wrote:
>>
>>>
>>> - What is the best way for me to access to parsed contents of the POM?
>>>
>> Just parse it wit a XPath expression
>>
>
> Unfortunately it won't work in many cases. E.g. when the version number is
> inherited from the parent POM. Workaround is possible but it's like
> re-implementing Maven.
>
>

Reply via email to