Oh, the "-pl" option seems to be one of the possible solutions.

Thank you!!

Žilvinas Vilutis

Mobile:   (+370) 652 38353
E-mail:   [email protected]



On Wed, Feb 16, 2011 at 10:21 AM, Nord, James <[email protected]> wrote:
> There is an option "Incremental build - only build changed modules" under the 
> advanced section of the Build options (for an M2 build).
>
> If checked, Hudson will only build any modules with changes from SCM and any 
> modules which depend on those changed modules, using Maven's "-amd -pl 
> group1:artifact1,group1:artifact2" command-line options. If the SCM reports 
> no changes to any modules, however, all modules will be built. See 
> http://docs.codehaus.org/display/MAVEN/Make+Like+Reactor+Mode for more 
> information on the Maven behavior this utilizes.
>
> This functionality requires Maven 2.1 or later, and will not have any impact 
> if "Build modules in parallel" is selected.
>
> Any follow-up on this should be directed at the Jenkins or Hudson users lists.
>
> /James
>
> -----Original Message-----
> From: Zilvinas Vilutis [mailto:[email protected]]
> Sent: 16 February 2011 17:18
> To: Leon Rosenberg
> Cc: Maven Users List
> Subject: Re: subversion vs maven
>
> Yes,
>
> However it does a "full build" which takes ~30-40 minutes. But I want to 
> build only specific projects and their dependents.
>
> Regards
>
> Žilvinas Vilutis
>
> Mobile:   (+370) 652 38353
> E-mail:   [email protected]
>
>
>
> On Wed, Feb 16, 2011 at 9:54 AM, Leon Rosenberg <[email protected]> 
> wrote:
>> How about hudson?
>>
>> Hudson can watch for svn changes and trigger builds on commit.
>>
>> regards
>> Leon
>>
>> On Wed, Feb 16, 2011 at 5:46 PM, Zilvinas Vilutis <[email protected]> wrote:
>>> Hello Maven Users!
>>>
>>> Probably this question was already asked, so if there is an answer
>>> which I could not find - please point me to the right place.
>>>
>>>
>>> I'm working on an enterprise project where maven integration plays a huge 
>>> role.
>>>
>>> However the project is big as a lot of teams are working on it and it
>>> takes quite some time to build it ( 30-40 minutes ), which I need to
>>> do every morning after an svn update.
>>>
>>>
>>> So I was thinking - is there any way to configure maven to build only
>>> the projects which were updated by SVN ( e.g. in the script time )?
>>>
>>>
>>> Most likely there is no direct answer...however, I think that I could
>>> find a way to gather the project names which were updated in the
>>> shell script - then I could pass the list of project names to maven command.
>>> Is there any way to make sure that those and dependent projects would
>>> be built in the right order?
>>>
>>>
>>> The project structure is:
>>>
>>> parent
>>> -- subsystem1
>>>  -- s1-project1
>>>  -- s1-project2
>>> -- subsystem2
>>>  -- s2-project1
>>>  -- s2-project2
>>>  -- s2-project3
>>> -- subsystem3
>>>  -- s3-project1
>>>
>>>
>>> Thank you for any ideas!
>>>
>>>
>>> Žilvinas Vilutis
>>>
>>> Mobile:   (+370) 652 38353
>>> 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]
>
>
>
> **************************************************************************************
> This message is confidential and intended only for the addressee. If you have 
> received this message in error, please immediately notify the 
> [email protected] and delete it from your system as well as any copies. The 
> content of e-mails as well as traffic data may be monitored by NDS for 
> employment and security purposes. To protect the environment please do not 
> print this e-mail unless necessary.
>
> NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 
> 4EX, United Kingdom. A company registered in England and Wales. Registered 
> no. 3080780. VAT no. GB 603 8808 40-00
> **************************************************************************************
>

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

Reply via email to