new maven 2 aggregate build issues

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

new maven 2 aggregate build issues

tvworks

I have the following structure

 

Job

Module1

            Module2

            Module3

            Module4

            Module5

 

Every project has a dependency on Module1.  So far, I have see in the log “Building Module1” 29 different times for a single build of Job.  I am running “mvn clean install site”.  Seems like the build logic is not correct and it keeps rebuilding projects when it shouldn’t.  The build of Job should take about 10 mins, so far it has been running for 3 hours now.

 

Jason Chaffee

Software Architect/Server Team Manager

TVWorks LLC

APPLICATIONS DIVISION

Tel : 415.380.6316

Cell: 415.637.8061

 

 

Reply | Threaded
Open this post in threaded view
|

Re: new maven 2 aggregate build issues

Kohsuke Kawaguchi
Administrator
Jason Chaffee wrote:

> I have the following structure
>
>  
>
> Job
>
> Module1
>
>             Module2
>
>             Module3
>
>             Module4
>
>             Module5
Module1 is the parent POM and 2-5 are the modules under it?

> Every project has a dependency on Module1.  So far, I have see in the
> log "Building Module1" 29 different times for a single build of Job.  I
> am running "mvn clean install site".  Seems like the build logic is not
> correct and it keeps rebuilding projects when it shouldn't.  The build
> of Job should take about 10 mins, so far it has been running for 3 hours
> now.

In the aggregator-style build, you should basically see the same output
as the recursive "mvn" invocation from your shell. That is, you'd see a
banner listing all modules to be built, followed by build of each
module, then the last big footer summarizing all the module builds and
how long it they took.

The build order and so on is completely delegated to Maven, and
therefore I find it difficult to understand what you mean by module1
being built 29 times. Any chance you can share the console output with
me (even privately?)

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Re: new maven 2 aggregate build issues

tvworks
I think it had something to do with running the "site" goal.  I plan on
testing it some more to confirm.

-----Original Message-----
From: Kohsuke Kawaguchi [mailto:[hidden email]]
Sent: Saturday, September 01, 2007 10:18 AM
To: [hidden email]
Cc: [hidden email]
Subject: Re: new maven 2 aggregate build issues

Jason Chaffee wrote:

> I have the following structure
>
>  
>
> Job
>
> Module1
>
>             Module2
>
>             Module3
>
>             Module4
>
>             Module5

Module1 is the parent POM and 2-5 are the modules under it?

> Every project has a dependency on Module1.  So far, I have see in the
> log "Building Module1" 29 different times for a single build of Job.
I
> am running "mvn clean install site".  Seems like the build logic is
not
> correct and it keeps rebuilding projects when it shouldn't.  The build
> of Job should take about 10 mins, so far it has been running for 3
hours
> now.

In the aggregator-style build, you should basically see the same output
as the recursive "mvn" invocation from your shell. That is, you'd see a
banner listing all modules to be built, followed by build of each
module, then the last big footer summarizing all the module builds and
how long it they took.

The build order and so on is completely delegated to Maven, and
therefore I find it difficult to understand what you mean by module1
being built 29 times. Any chance you can share the console output with
me (even privately?)

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: new maven 2 aggregate build issues

Kohsuke Kawaguchi
Administrator

There was another issue report from another user about running the site
goal, so maybe there's something really wrong with this.

Will look forward to hearing back on your test.

Jason Chaffee wrote:

> I think it had something to do with running the "site" goal.  I plan on
> testing it some more to confirm.
>
> -----Original Message-----
> From: Kohsuke Kawaguchi [mailto:[hidden email]]
> Sent: Saturday, September 01, 2007 10:18 AM
> To: [hidden email]
> Cc: [hidden email]
> Subject: Re: new maven 2 aggregate build issues
>
> Jason Chaffee wrote:
>> I have the following structure
>>
>>  
>>
>> Job
>>
>> Module1
>>
>>             Module2
>>
>>             Module3
>>
>>             Module4
>>
>>             Module5
>
> Module1 is the parent POM and 2-5 are the modules under it?
>
>> Every project has a dependency on Module1.  So far, I have see in the
>> log "Building Module1" 29 different times for a single build of Job.
> I
>> am running "mvn clean install site".  Seems like the build logic is
> not
>> correct and it keeps rebuilding projects when it shouldn't.  The build
>> of Job should take about 10 mins, so far it has been running for 3
> hours
>> now.
>
> In the aggregator-style build, you should basically see the same output
> as the recursive "mvn" invocation from your shell. That is, you'd see a
> banner listing all modules to be built, followed by build of each
> module, then the last big footer summarizing all the module builds and
> how long it they took.
>
> The build order and so on is completely delegated to Maven, and
> therefore I find it difficult to understand what you mean by module1
> being built 29 times. Any chance you can share the console output with
> me (even privately?)
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment