20030821 Thursday August 21, 2003

Maven and Automation of Build/Test/Deploy process I've convinced the folks at my new project to use Maven for organizing, building and testing our projects. It's my recommendation because they have many (5+) webapps that all have the same dependencies. Maven was the obvious choice to eliminate duplication and standardize directory structures, etc. So my question is - how do I automate our build/test/deploy process? I currently use Anthill with Ant, and wish I could use it with Maven. Last time I checked, I couldn't. I've heard I could use CruiseControl. If that's true (and recommended over Anthill) - anyone got a HowTo? Posted in Java at Aug 21 2003, 02:33:18 PM MDT 5 Comments

Comments:

Checkout this page at the wiki at http://c2.com/w4/cc/wiki.cgi?GettingStartedWithCruiseControl. To use maven instead of ant just switch the call to the ant builder in the schedule node to the maven builder and specify the path to maven and to your project.xml file.

Posted by Lee on August 21, 2003 at 04:55 PM MDT #

We use Anthill Pro at Atlassian which has a MavenBuilder (although I find both Anthill and Cruisecontrol pretty shit software really). Anthill has some really cool features but the world's most confusing interface, and Cruisecontrol seems to be built around Ant and CVS.

Posted by Mike Cannon-Brookes on August 21, 2003 at 06:40 PM MDT #

I've written a simple plugin for cruisecontrol to generate a config file you can use pretty much out of the box. http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-618 maven plugin:install I'll be getting this into Maven's CVS pretty soon, just need a bit more polish on that and the dependant SCM plugin. I don't agree with Mike on this one, I think cruisecontrol does plenty and has certainly helped out here. It also seems to support a lot more than CVS although I've never used it.

Posted by Brett Porter on August 21, 2003 at 09:46 PM MDT #

This might be easier to read:

Download Maven CruiseControl plugin
To install: <code>maven plugin:install</code>

:)

Posted by Brett Porter on August 21, 2003 at 09:48 PM MDT #

Why don't you simply use what's built-in with Maven? There is a reactor that does that for you. I'm working on a project where we have 300+ Maven projects and we have continuous integration running every 3 hours using the reactor. It works fine for us (except for a memory leak problem but that shouldn't be an issue for 5 projects). You can also use the multiproject plugin (if you're using HEAD - I don't know how good multiproject is in beta 10). -Vincent

Posted by Vincent Massol on August 22, 2003 at 03:42 AM MDT #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architect who enjoys developing applications with open source technologies. Contact me for rates.
« December 2008
SunMonTueWedThuFriSat
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
   
       
Today

Recent Entries

Tag Cloud