Re: Lifecyle Question
I understood you, too. :) On 7/10/07, Eric Redmond <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Lifecyle Question
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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 < [EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > 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
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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > 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
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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- 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
Ok, thanks it clearer now! On 6/9/07, Mac Systems <[EMAIL PROTECTED]> wrote: Sound Good so far. But i get Confused as i through to know that maven will invoke each of the previous goals. Doing that with Cruise Control mean i have to install each time the snapshots ? the means i have to call somthing like this: "maven clean compile install package site-stage" That collapses to 'mvn clean install site-stage' You only need to name one phase per lifecycle, and Maven will execute everything up to and including that phase. You're using three different lifecycles here: clean, default, and site. http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Lifecyle Question
On 6/9/07, Mac Systems <[EMAIL PROTECTED]> wrote: Sound Good so far. But i get Confused as i through to know that maven will invoke each of the previous goals. Doing that with Cruise Control mean i have to install each time the snapshots ? the means i have to call somthing like this: "maven clean compile install package site-stage" That collapses to 'mvn clean install site-stage' You only need to name one phase per lifecycle, and Maven will execute everything up to and including that phase. You're using three different lifecycles here: clean, default, and site. http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Lifecyle Question
Yes - install them to the repo on each build, no matter how (CC or manual), but only with "mvn clean install". "install" will run the prior lifecycle steps. -Original Message- From: Mac Systems [mailto:[EMAIL PROTECTED] Sent: Saturday, June 09, 2007 8:15 AM To: Maven Users List Subject: Re: Lifecyle Question Sound Good so far. But i get Confused as i through to know that maven will invoke each of the previous goals. Doing that with Cruise Control mean i have to install each time the snapshots ? the means i have to call somthing like this: "maven clean compile install package site-stage" Is that correct ? thanks, Jens > 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Lifecyle Question
Sound Good so far. But i get Confused as i through to know that maven will invoke each of the previous goals. Doing that with Cruise Control mean i have to install each time the snapshots ? the means i have to call somthing like this: "maven clean compile install package site-stage" Is that correct ? thanks, Jens 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Lifecyle Question
Hi Jens, Post your pom.xml files, so we can have a look.. Cheers Jo On 6/7/07, Mac Systems <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Lifecyle Question
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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eric Redmond http://www.sonatype.com
Re: Lifecyle Question
What is the specific error message? Copy and paste it here. And what happens with "mvn clean compile" and "mvn clean package"? Wayne On 6/7/07, Mac Systems <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]