You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by James Russo <jr...@halo3.net> on 2009/08/29 19:15:59 UTC
dependency scope with parent module?
Hello,
I have a parent module, and 3 "sub?" modules.
project-common
project-server
project-weblogic
I have parent setup in all of them, but for some reason when I can't
get project-weblogic to compile if I scope set to test, and I can't get
it to test if I set scope to compile? I had thought that setting it to
test, would require it for both test and compile.
The only solution I could come up with is to put dependency in there
twice, once with scope test and once with scope compile? Am I missing
something?
-jr
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
AW: dependency scope with parent module?
Posted by "Lewis, Eric" <Er...@ipi.ch>.
Hi James
I think it would be easier if you include the POMs (at least the relevant parts).
Best regards,
Eric
> -----Ursprüngliche Nachricht-----
> Von: James Russo [mailto:jr@halo3.net]
> Gesendet: Montag, 31. August 2009 13:29
> An: Maven Users List
> Betreff: Re: dependency scope with parent module?
>
> Can anyone help me out this this?
>
> -jr
>
> James Russo wrote:
> > Hello,
> >
> > I have a parent module, and 3 "sub?" modules.
> >
> > project-common
> > project-server
> > project-weblogic
> >
> > I have parent setup in all of them, but for some reason when I
> > can't get project-weblogic to compile if I scope set to test, and I
> > can't get it to test if I set scope to compile? I had thought that
> > setting it to test, would require it for both test and compile.
> >
> > The only solution I could come up with is to put dependency
> in there
> > twice, once with scope test and once with scope compile? Am
> I missing
> > something?
> >
> >
> > -jr
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: dependency scope with parent module?
Posted by James Russo <jr...@halo3.net>.
Can anyone help me out this this?
-jr
James Russo wrote:
> Hello,
>
> I have a parent module, and 3 "sub?" modules.
>
> project-common
> project-server
> project-weblogic
>
> I have parent setup in all of them, but for some reason when I
> can't get project-weblogic to compile if I scope set to test, and I
> can't get it to test if I set scope to compile? I had thought that
> setting it to test, would require it for both test and compile.
>
> The only solution I could come up with is to put dependency in there
> twice, once with scope test and once with scope compile? Am I missing
> something?
>
>
> -jr
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org