Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] tycho-versions-plugin does not replace ${sub.dir} properties for child projects

Hi Igor,

you are probably right that using properties in these elements does not provide that much value, as these directories will rarely change and, if so, find/replace on one pom.xml is not that much of a chore.

The problem mainly was that I somehow thought that the version-update not working was due to some other issue, like unmatching version numbers, and that it took some time for me to find the real source of trouble.

Regards,
Alexander


Am 19.03.2014 15:57, schrieb Igor Fedorenko:
No, you are not missing anything, tycho-versions-plugin operates on
original not-interpolated project model and does not expand
${properties} in <module> elements.

My suggestion, don't use ${properties} in <module> elements... but if
you want this changed in Tycho, you'll first need to convince me your
usecase makes sense and then most likely provide a quality patch for
tycho-version-plugin.

--
Regards,
Igor

On 2014-03-19, 9:20, Alexander Aumann wrote:
Hello everybody,

I encounter a problem when using the tycho-versions-plugin (tested both
with 0.19 and 0.20).

I have a parent pom in a "releng folder" where I define child modules like:

<module>${plugins.dir}/my.plugin</module>

Now I execute the versions plugin like this:

$ mvn -Dtycho.mode=maven
org.eclipse.tycho:tycho-versions-plugin:set-version
-DnewVersion="1.1.0-SNAPSHOT"

The result is that all the child projects are listed in the "reactor
build order", but then I receive output like:

"[INFO] Project does not exist at
d:\path\to\project\releng\${plugins.dir}\my.plugin"

for every child project, and as a result only the parent pom is adapted.

As soon as I replace the property with the real path everything works
correctly, i.e. the plugin's pom and manifest are updated correctly:

<module>../../plugins/my.plugin</module>

Am I missing something or is this a bug I should report (tested with
tycho 0.19 and 0.20)?

Best regards,
Alexander
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



Back to the top