You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Jukka Zitting <ju...@gmail.com> on 2006/12/07 14:56:04 UTC
Re: svn commit: r483444 - in /jackrabbit/trunk: jackrabbit-jcr-rmi/pom.xml pom.xml
Hi,
On 12/7/06, tripod@apache.org <tr...@apache.org> wrote:
> Author: tripod
> Date: Thu Dec 7 05:22:06 2006
> New Revision: 483444
What's the rationale for this change? There are two problems:
1) Moving the profile settings down to jackrabbit-jcr-rmi reintroduces
the original problem of the plugin dependencies being inherited when
doing a multimodule build. We need the add-project-files execution in
any case and it makes most sense to have it in the shared parent pom,
so we need to put the JCR-661 dependency workaround there as well.
2) You've changed the XML indentation, making the diff very hard to
read. I think the indentation was quite consistent and clear already
before, was there a compelling reason to change it? In any case, if
you do want to change the indentation, please do it in a separate
commit with a descriptive commit message.
BR,
Jukka Zitting
Re: svn commit: r483444 - in /jackrabbit/trunk: jackrabbit-jcr-rmi/pom.xml pom.xml
Posted by Tobias Bocanegra <to...@day.com>.
> Correct. The problem, however, is that the maven-antrun-plugin
> definition in jackrabbit-jcr-rmi inherits the maven-antrun-plugin
> dependencies from the parent pom when doing a multiproject build.
> Don't ask me why, it's one of those Maven internals issues. So to make
> things work correctly for jackrabbit-jcr-rmi, the tools.jar dependency
> actually needs to be defined in maven-antrun-plugin setting in the
> parent pom.
yes, but it also works, if it's just defined in the rmi module. but of
course, defining it in the parent pom is better, since it inherits to
all sub modules that might possibly use it.
> None of this trickery of course affects the Mac build since there the
> required classes are available in any case, and it is the tools.jar
> dependency itself that breaks things, regardless of whether it's
> located in the parent pom or in the jackrabbit-jcr-rmi pom.
right.
> > let me go over the config again and check on mac/non-mac platforms.
>
> Thanks! Things should be fine if you revert revision 483444 and then
> just remove the tools.jar dependency from jackrabbit-jcr-rmi/pom.xml.
ok.
--
-----------------------------------------< tobias.bocanegra@day.com >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---
Re: svn commit: r483444 - in /jackrabbit/trunk: jackrabbit-jcr-rmi/pom.xml pom.xml
Posted by Jukka Zitting <ju...@gmail.com>.
Hi,
On 12/7/06, Tobias Bocanegra <to...@day.com> wrote:
> > 1) Moving the profile settings down to jackrabbit-jcr-rmi reintroduces
> > the original problem of the plugin dependencies being inherited when
> > doing a multimodule build. We need the add-project-files execution in
> > any case and it makes most sense to have it in the shared parent pom,
> > so we need to put the JCR-661 dependency workaround there as well.
> well, it works for me :-) and for mac :-)
ACK, I just understood the rationale for the change, see my previous emial.
> however, you changes were not working, since the tools.jar dependency
> was configured for the <id>add-project-files</id> task and not for the
> rmi task. the tools.jar is only needed for the rmi modules (afaik).
Correct. The problem, however, is that the maven-antrun-plugin
definition in jackrabbit-jcr-rmi inherits the maven-antrun-plugin
dependencies from the parent pom when doing a multiproject build.
Don't ask me why, it's one of those Maven internals issues. So to make
things work correctly for jackrabbit-jcr-rmi, the tools.jar dependency
actually needs to be defined in maven-antrun-plugin setting in the
parent pom.
None of this trickery of course affects the Mac build since there the
required classes are available in any case, and it is the tools.jar
dependency itself that breaks things, regardless of whether it's
located in the parent pom or in the jackrabbit-jcr-rmi pom.
> > 2) You've changed the XML indentation, making the diff very hard to
> > read. I think the indentation was quite consistent and clear already
> > before, was there a compelling reason to change it? In any case, if
> > you do want to change the indentation, please do it in a separate
> > commit with a descriptive commit message.
> oops. this was probably done automatically by my XML editor. i will
> revert the changes then.
OK, no problem.
> let me go over the config again and check on mac/non-mac platforms.
Thanks! Things should be fine if you revert revision 483444 and then
just remove the tools.jar dependency from jackrabbit-jcr-rmi/pom.xml.
BR,
Jukka Zitting
Re: svn commit: r483444 - in /jackrabbit/trunk: jackrabbit-jcr-rmi/pom.xml pom.xml
Posted by Tobias Bocanegra <to...@day.com>.
hi,
> What's the rationale for this change? There are two problems:
well, jira was not accessbile, thats why i couldn't comment on my checkin yet.
> 1) Moving the profile settings down to jackrabbit-jcr-rmi reintroduces
> the original problem of the plugin dependencies being inherited when
> doing a multimodule build. We need the add-project-files execution in
> any case and it makes most sense to have it in the shared parent pom,
> so we need to put the JCR-661 dependency workaround there as well.
well, it works for me :-) and for mac :-)
however, you changes were not working, since the tools.jar dependency
was configured for the <id>add-project-files</id> task and not for the
rmi task.
the tools.jar is only needed for the rmi modules (afaik).
> 2) You've changed the XML indentation, making the diff very hard to
> read. I think the indentation was quite consistent and clear already
> before, was there a compelling reason to change it? In any case, if
> you do want to change the indentation, please do it in a separate
> commit with a descriptive commit message.
oops. this was probably done automatically by my XML editor. i will
revert the changes then.
let me go over the config again and check on mac/non-mac platforms.
regards, toby
--
-----------------------------------------< tobias.bocanegra@day.com >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---
Re: svn commit: r483444 - in /jackrabbit/trunk: jackrabbit-jcr-rmi/pom.xml pom.xml
Posted by Jukka Zitting <ju...@gmail.com>.
On 12/7/06, Jukka Zitting <ju...@gmail.com> wrote:
> 1) Moving the profile settings down to jackrabbit-jcr-rmi reintroduces
> the original problem of the plugin dependencies being inherited when
> doing a multimodule build. We need the add-project-files execution in
> any case and it makes most sense to have it in the shared parent pom,
> so we need to put the JCR-661 dependency workaround there as well.
Ah, I see now what you were trying to achieve. See JCR-661 for more.
BR,
Jukka Zitting