"..takes quite some time to build it ( 30-40 minutes ), which I need to do every morning after an svn update."
I'm not sure why do you think that it's necessary to build the whole project locally every morning? After a commit, a maven project should be deployed as SNAPSHOT version into the remote repository. It would recommend to do an svn update on the project root and calling "mvn -U initialize dependency:sources" on your project parent (s?) or a pom which contains all required dependencies (starter pom?) for the whole project. This call should resolve all newer available snapshot dependencies from the remote repository in no time. I hope this help, - Chris -----Ursprüngliche Nachricht----- Von: Stadelmann Josef [mailto:[email protected]] Gesendet: Dienstag, 22. Februar 2011 11:03 An: Maven Users List Betreff: AW: subversion vs maven I would consider this as either a) "bad dependencies" or b) "bad dependency management" And I woul NOT and never ever expect that from a modern build system like maven. Josef -----Ursprüngliche Nachricht----- Von: Jeff [mailto:[email protected]] Gesendet: Mittwoch, 16. Februar 2011 18:28 An: Maven Users List; [email protected] Betreff: Re: subversion vs maven Maybe this question will expose my ignorance, but I thought most build systems only build the things that have changed unless you do a "clean" each time or are starting from a fresh checkout as opposed to doing an "svn update" and then running the build. Being new to Maven myself, there could there be an option in the POM that might be forcing a full build each time? I would think that as long as you aren't specifying "clean" in your build kickoff process or otherwise forcing a full biuld, you should only be getting the incremental build, no? Am I off in my understanding? On Wed, Feb 16, 2011 at 10:18 AM, Zilvinas Vilutis <[email protected]>wrote: > 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] > > -- Jeff Vincent [email protected] See my LinkedIn profile at: http://www.linkedin.com/in/rjeffreyvincent
