maven2 multi module question

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

maven2 multi module question

Brant Boehmann
I am confused about how Hudson supports maven2 multi-module projects.
I have a pom which contains approximately 30 modules; however, all of the modules are contained inside of profiles.
I have a profile name "all" which contains all the modules. In the "goals" section of the job I put "clean install -Pall".
The behavior I am seeing is kind of strange, The console output for the parent project contains the following:

started
Updating https://sensornet-data.ornl.gov/svn/repos/iStation/trunk
At revision 5864
Parsing POMs
Triggering gov.sensornet:sensornet
finished: SUCCESS

It looks like the profile is being ignored.

I also notice that individual modules are being built, but only 4 of them. I'm not sure why these 4, but none of the others are ever built. I'd prefer to have a single build for the parent project which would be equivalent to doing "mvn clean install -Pall" from the command line.
Any thoughts?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: maven2 multi module question

Kohsuke Kawaguchi
Administrator
Brant Boehmann wrote:

> I am confused about how Hudson supports maven2 multi-module projects.
> I have a pom which contains approximately 30 modules; however, all of the
> modules are contained inside of profiles.
> I have a profile name "all" which contains all the modules. In the "goals"
> section of the job I put "clean install -Pall".
> The behavior I am seeing is kind of strange, The console output for the
> parent project contains the following:
>
> started
> Updating https://sensornet-data.ornl.gov/svn/repos/iStation/trunk
> At revision 5864
> Parsing POMs
> Triggering gov.sensornet:sensornet
> finished: SUCCESS
>
> It looks like the profile is being ignored.
>
> I also notice that individual modules are being built, but only 4 of
> them. I'm not sure why these 4, but none of the others are ever built.
> I'd prefer to have a single build for the parent project which would
> be equivalent to doing "mvn clean install -Pall" from the command
> line.
>
> Any thoughts?
Sounds like there's some issues with profiles --- I guess when Hudson
parses POMs it doesn't use any profiles, maybe that's why. Could you
file an issue for that so that we can keep track of it?

As for the "only 4 modules are built" problem, I'm not sure what's going
  on there. Can you explain a bit more about the structures of the
modules and their dependencies?


--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

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

Re: maven2 multi module question

Brant Boehmann
Sounds like there's some issues with profiles --- I guess when Hudson
parses POMs it doesn't use any profiles, maybe that's why. Could you
file an issue for that so that we can keep track of it?

I'd be happy to, but at this point I'm a little uncertain what to type to make the issue clear, but I certainly will do my best.

As for the "only 4 modules are built" problem, I'm not sure what's going
  on there. Can you explain a bit more about the structures of the
modules and their dependencies?

Sure, We have many modules. They are all contained in profiles to deal with which subset of the modules we may need to build at any given time.
I'm attaching the pom (modified somewhat to protect the project & the innocent). As you can see there are many profiles, and many modules. The modules that hudson is building are:
ISP-DropDownCore, ISP-EmailService, ISP-JMS, & ISP-Utils. I have hudson configured on  a schedule to run  goals "clean install -Pall" every hour, and every hour these four modules get built.

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

pom.xml (41K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: maven2 multi module question

Brant Boehmann
ok, I've got some more information. Apparently the other modules weren't building because one module build was failing. ISP-Utils in my case was failing tests, and almost all other modules depend on it.

I would like a clarification on how all this multi module, upstream, downstream business works (maybe in relation to profiles as well). Looks like there's a placeholder in the wiki.

On 8/15/07, Brant Boehmann <[hidden email]> wrote:
Sounds like there's some issues with profiles --- I guess when Hudson
parses POMs it doesn't use any profiles, maybe that's why. Could you
file an issue for that so that we can keep track of it?

I'd be happy to, but at this point I'm a little uncertain what to type to make the issue clear, but I certainly will do my best.

As for the "only 4 modules are built" problem, I'm not sure what's going
  on there. Can you explain a bit more about the structures of the
modules and their dependencies?

Sure, We have many modules. They are all contained in profiles to deal with which subset of the modules we may need to build at any given time.
I'm attaching the pom (modified somewhat to protect the project & the innocent). As you can see there are many profiles, and many modules. The modules that hudson is building are:
ISP-DropDownCore, ISP-EmailService, ISP-JMS, & ISP-Utils. I have hudson configured on  a schedule to run  goals "clean install -Pall" every hour, and every hour these four modules get built.


Reply | Threaded
Open this post in threaded view
|

Re: maven2 multi module question

Kohsuke Kawaguchi
Administrator
Brant Boehmann wrote:
> ok, I've got some more information. Apparently the other modules weren't
> building because one module build was failing. ISP-Utils in my case was
> failing tests, and almost all other modules depend on it.
>
> I would like a clarification on how all this multi module, upstream,
> downstream business works (maybe in relation to profiles as well). Looks
> like there's a placeholder in the wiki.

Ah, yes. I'll put something there.

> On 8/15/07, Brant Boehmann <[hidden email]> wrote:
>>
>> Sounds like there's some issues with profiles --- I guess when Hudson
>> > parses POMs it doesn't use any profiles, maybe that's why. Could you
>> > file an issue for that so that we can keep track of it?
>>
>>
>> I'd be happy to, but at this point I'm a little uncertain what to type to
>> make the issue clear, but I certainly will do my best.
>>
>> As for the "only 4 modules are built" problem, I'm not sure what's going
>> >   on there. Can you explain a bit more about the structures of the
>> > modules and their dependencies?
>>
>>
>> Sure, We have many modules. They are all contained in profiles to deal
>> with which subset of the modules we may need to build at any given time.
>> I'm attaching the pom (modified somewhat to protect the project & the
>> innocent). As you can see there are many profiles, and many modules. The
>> modules that hudson is building are:
>> ISP-DropDownCore, ISP-EmailService, ISP-JMS, & ISP-Utils. I have hudson
>> configured on  a schedule to run  goals "clean install -Pall" every hour,
>> and every hour these four modules get built.
>>
>>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment