On Thu, Feb 16, 2012 at 4:10 PM, Bogdan Flueras
<flueras.bogdan(a)gmail.com> wrote:
Currently all xwiki-platform submodules have in their
pom.xml definition
the following:
<parent>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-...</artifactId>
<version>3.5-SNAPSHOT</version>
</parent>
The problem I see is that the parent version is a hardcoded in every
submodule, thus making some some tasks very very difficult.
Like what ?
This is because Maven cannot read a placeholder value
placed inside
<version> tag.
There seems to be some work on behalf of Maven guys for this issue:
http://jira.codehaus.org/browse/MNG-624 but ...
My proposal is to either:
1) remove the <version> tag in the parent definition from every child
module and let inheritance do it's job
2) use the <relativePath> *if the child can have access to it's parent pom
by relative path*
I haven't tested yet but if you remove it, will the sub module know from
which parent (which could have many versions) to inherit the <version>
property?
Only if you provide the relativePath as far as I know.
WDYT?
ing. Bogdan Flueras
Tel: +33666116067
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne