You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Dipl.-Ing. Torsten Liermann" <of...@liermann-it.de> on 2007/01/17 16:09:22 UTC
? Must I install modules before compiling an other modules
(Sorry, I can not speak english).
My question:
Must I install modules before compiling an other module with dependcies
to modules? Or is there a way without installing modules and start compilation
within modules directory? The compilation from the parent directory
works fine...
Thanks,
Torsten
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: ? Must I install modules before compiling an other modules
Posted by Dan Tran <da...@gmail.com>.
should work for all phases
On 1/17/07, kapadia <sa...@gmail.com> wrote:
>
>
> This is excellent information, I've been wondering about this for so long
> but
> never knew an answer existed until now.
>
> Of course this leads me to another question :) Does this only work for
> compile? If I run "mvn test" from the parent directory, will the unit
> tests
> have the correct classpath with all of the submodules's classes included?
>
> Thanks so much for this information,
> Sujan
>
>
>
> Wayne Fay wrote:
> >
> > Places to run "mvn compile":
> >
> > /projects/torsten/ -- success with nothing installed
> > /projects/torsten/submoduleA, no dependencies -- success with nothing
> > installed
> > /projects/torsten/submoduleB, depends on A -- A must be installed for
> > compile to be successful
> > /projects/torsten/submoduleC, depends on B -- B must be installed for
> > compile to be successful
> >
> > As a result, I generally run "mvn compile" from the parent directory,
> > so I don't have to worry about what's installed and what isn't.
> >
> > Wayne
> >
> > On 1/17/07, Dan Tran <da...@gmail.com> wrote:
> >> When you are INSIDE a module/project, the only way that maven can
> locate
> >> the
> >> dependencies is via local repository.
> >> An therefor all your dependent module must be installed..
> >>
> >> However if you use the parent to build all modules, you dont have to
> run
> >> "maven install" but "maven compile" would do
> >> since maven is aware of all module's classes directory
> >>
> >> -Dan
> >>
> >> On 1/17/07, Dipl.-Ing. Torsten Liermann <of...@liermann-it.de> wrote:
> >> >
> >> > (Sorry, I can not speak english).
> >> >
> >> > My question:
> >> >
> >> > Must I install modules before compiling an other module with
> dependcies
> >> > to modules? Or is there a way without installing modules and start
> >> > compilation
> >> > within modules directory? The compilation from the parent directory
> >> > works fine...
> >> >
> >> > Thanks,
> >> > Torsten
> >> >
> >> > ---------------------------------------------------------------------
> >> > 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
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/--Must-I-install-modules-before-compiling-an-other-modules-tf3027788s177.html#a8415795
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: ? Must I install modules before compiling an other modules
Posted by kapadia <sa...@gmail.com>.
This is excellent information, I've been wondering about this for so long but
never knew an answer existed until now.
Of course this leads me to another question :) Does this only work for
compile? If I run "mvn test" from the parent directory, will the unit tests
have the correct classpath with all of the submodules's classes included?
Thanks so much for this information,
Sujan
Wayne Fay wrote:
>
> Places to run "mvn compile":
>
> /projects/torsten/ -- success with nothing installed
> /projects/torsten/submoduleA, no dependencies -- success with nothing
> installed
> /projects/torsten/submoduleB, depends on A -- A must be installed for
> compile to be successful
> /projects/torsten/submoduleC, depends on B -- B must be installed for
> compile to be successful
>
> As a result, I generally run "mvn compile" from the parent directory,
> so I don't have to worry about what's installed and what isn't.
>
> Wayne
>
> On 1/17/07, Dan Tran <da...@gmail.com> wrote:
>> When you are INSIDE a module/project, the only way that maven can locate
>> the
>> dependencies is via local repository.
>> An therefor all your dependent module must be installed..
>>
>> However if you use the parent to build all modules, you dont have to run
>> "maven install" but "maven compile" would do
>> since maven is aware of all module's classes directory
>>
>> -Dan
>>
>> On 1/17/07, Dipl.-Ing. Torsten Liermann <of...@liermann-it.de> wrote:
>> >
>> > (Sorry, I can not speak english).
>> >
>> > My question:
>> >
>> > Must I install modules before compiling an other module with dependcies
>> > to modules? Or is there a way without installing modules and start
>> > compilation
>> > within modules directory? The compilation from the parent directory
>> > works fine...
>> >
>> > Thanks,
>> > Torsten
>> >
>> > ---------------------------------------------------------------------
>> > 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
>
>
>
--
View this message in context: http://www.nabble.com/--Must-I-install-modules-before-compiling-an-other-modules-tf3027788s177.html#a8415795
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: ? Must I install modules before compiling an other modules
Posted by Wayne Fay <wa...@gmail.com>.
Places to run "mvn compile":
/projects/torsten/ -- success with nothing installed
/projects/torsten/submoduleA, no dependencies -- success with nothing installed
/projects/torsten/submoduleB, depends on A -- A must be installed for
compile to be successful
/projects/torsten/submoduleC, depends on B -- B must be installed for
compile to be successful
As a result, I generally run "mvn compile" from the parent directory,
so I don't have to worry about what's installed and what isn't.
Wayne
On 1/17/07, Dan Tran <da...@gmail.com> wrote:
> When you are INSIDE a module/project, the only way that maven can locate the
> dependencies is via local repository.
> An therefor all your dependent module must be installed..
>
> However if you use the parent to build all modules, you dont have to run
> "maven install" but "maven compile" would do
> since maven is aware of all module's classes directory
>
> -Dan
>
> On 1/17/07, Dipl.-Ing. Torsten Liermann <of...@liermann-it.de> wrote:
> >
> > (Sorry, I can not speak english).
> >
> > My question:
> >
> > Must I install modules before compiling an other module with dependcies
> > to modules? Or is there a way without installing modules and start
> > compilation
> > within modules directory? The compilation from the parent directory
> > works fine...
> >
> > Thanks,
> > Torsten
> >
> > ---------------------------------------------------------------------
> > 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: ? Must I install modules before compiling an other modules
Posted by Dan Tran <da...@gmail.com>.
When you are INSIDE a module/project, the only way that maven can locate the
dependencies is via local repository.
An therefor all your dependent module must be installed..
However if you use the parent to build all modules, you dont have to run
"maven install" but "maven compile" would do
since maven is aware of all module's classes directory
-Dan
On 1/17/07, Dipl.-Ing. Torsten Liermann <of...@liermann-it.de> wrote:
>
> (Sorry, I can not speak english).
>
> My question:
>
> Must I install modules before compiling an other module with dependcies
> to modules? Or is there a way without installing modules and start
> compilation
> within modules directory? The compilation from the parent directory
> works fine...
>
> Thanks,
> Torsten
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>