You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mykel Alvis <my...@weirdness.com> on 2007/07/10 00:35:49 UTC

Re: Lifecyle Question

So why doesn't a multi-module build collect the test-jars into the reactor
classpath?  Is this a known issue of some sort?
I managed to crash into this headlong today... :)

On 6/7/07, Eric Redmond <er...@gmail.com> wrote:
>
> Sounds like one of your modules has a dependency on a project that
> generates
> a test-jar. Sorry to say, but you actually have to run "mvn install" - so
> the test-jar can be packaged and installed so the module that requires it
> can access it.
>
> It works via "mvn compile" because no test is run, hence no test scope
> dependencies.
>
> Eric
>
> On 6/7/07, Mac Systems <ma...@mac-systems.de> wrote:
> >
> > Hello Maven Users,
> >
> > i'd like to how this can happen:
> >
> > I have an Multiprojekt:
> >
> > "mvn compile"
> >
> > work well, all is compiled!
> >
> > If i do
> >
> > "mvn package"
> >
> > i get an Error that some package and test-jar not found. Can someone
> > explain a bit how this can happen ?
> >
> > greets,
> > Jens
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> Eric Redmond
> http://www.sonatype.com
>



-- 
"My friends tell me I have an intimacy problem. But they don't really know
me." -- Garry Shandling
Anyone who has the power to make you believe absurdities has the power to
make you commit injustices. -- Voltaire

Re: Lifecyle Question

Posted by Mykel Alvis <my...@weirdness.com>.
I understood you, too. :)

On 7/10/07, Eric Redmond <er...@gmail.com> wrote:
> Sorry - not "bundles projects" but artifact resolution - meant to say
> "projects need to be resolved beforehand" - made sense in my head :)
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Lifecyle Question

Posted by Eric Redmond <er...@gmail.com>.
Sorry - not "bundles projects" but artifact resolution - meant to say
"projects need to be resolved beforehand" - made sense in my head :)

Eric

On 7/10/07, Eric Redmond <er...@gmail.com> wrote:
>
> It is a known issue with the way the reactor currently bundles projects.
> It's being worked on - but definitely cannot be fixed before 2.1.
>
> Eric
>
> On 7/9/07, Mykel Alvis <my...@weirdness.com> wrote:
> >
> > So why doesn't a multi-module build collect the test-jars into the
> > reactor
> > classpath?  Is this a known issue of some sort?
> > I managed to crash into this headlong today... :)
> >
> > On 6/7/07, Eric Redmond < eric.redmond@gmail.com> wrote:
> > >
> > > Sounds like one of your modules has a dependency on a project that
> > > generates
> > > a test-jar. Sorry to say, but you actually have to run "mvn install" -
> > so
> > > the test-jar can be packaged and installed so the module that requires
> > it
> > > can access it.
> > >
> > > It works via "mvn compile" because no test is run, hence no test scope
> > > dependencies.
> > >
> > > Eric
> > >
> > > On 6/7/07, Mac Systems <ma...@mac-systems.de> wrote:
> > > >
> > > > Hello Maven Users,
> > > >
> > > > i'd like to how this can happen:
> > > >
> > > > I have an Multiprojekt:
> > > >
> > > > "mvn compile"
> > > >
> > > > work well, all is compiled!
> > > >
> > > > If i do
> > > >
> > > > "mvn package"
> > > >
> > > > i get an Error that some package and test-jar not found. Can someone
> > > > explain a bit how this can happen ?
> > > >
> > > > greets,
> > > > Jens
> > > >
> > > >
> > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Eric Redmond
> > > http://www.sonatype.com
> > >
> >
> >
> >
> > --
> > "My friends tell me I have an intimacy problem. But they don't really
> > know
> > me." -- Garry Shandling
> > Anyone who has the power to make you believe absurdities has the power
> > to
> > make you commit injustices. -- Voltaire
> >
>
>
>
> --
> Eric Redmond
> http://www.sonatype.com
>



-- 
Eric Redmond
http://www.sonatype.com

Re: Lifecyle Question

Posted by Eric Redmond <er...@gmail.com>.
It is a known issue with the way the reactor currently bundles projects.
It's being worked on - but definitely cannot be fixed before 2.1.

Eric

On 7/9/07, Mykel Alvis <my...@weirdness.com> wrote:
>
> So why doesn't a multi-module build collect the test-jars into the reactor
> classpath?  Is this a known issue of some sort?
> I managed to crash into this headlong today... :)
>
> On 6/7/07, Eric Redmond <er...@gmail.com> wrote:
> >
> > Sounds like one of your modules has a dependency on a project that
> > generates
> > a test-jar. Sorry to say, but you actually have to run "mvn install" -
> so
> > the test-jar can be packaged and installed so the module that requires
> it
> > can access it.
> >
> > It works via "mvn compile" because no test is run, hence no test scope
> > dependencies.
> >
> > Eric
> >
> > On 6/7/07, Mac Systems <ma...@mac-systems.de> wrote:
> > >
> > > Hello Maven Users,
> > >
> > > i'd like to how this can happen:
> > >
> > > I have an Multiprojekt:
> > >
> > > "mvn compile"
> > >
> > > work well, all is compiled!
> > >
> > > If i do
> > >
> > > "mvn package"
> > >
> > > i get an Error that some package and test-jar not found. Can someone
> > > explain a bit how this can happen ?
> > >
> > > greets,
> > > Jens
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> > Eric Redmond
> > http://www.sonatype.com
> >
>
>
>
> --
> "My friends tell me I have an intimacy problem. But they don't really know
> me." -- Garry Shandling
> Anyone who has the power to make you believe absurdities has the power to
> make you commit injustices. -- Voltaire
>



-- 
Eric Redmond
http://www.sonatype.com