Re: Maven
Re: Maven
- Subject: Re: Maven
- From: Lachlan Deck <email@hidden>
- Date: Thu, 17 Nov 2011 09:55:47 +1100
On 17/11/2011, at 8:13 AM, David Avendasora wrote:
> Ant is pretty simple. Mostly I don't even think about the Ant portion of my WO projects other than to tell Hudson that it has to issue an Ant command to build the project.
It's true that various people have put a lot of effort into making WOLips as simple as possible. However,
a) you are responsible for ensuring that your frameworks are installed in certain places on every machine. It's not pulled in just by dropping your ant file in place (unless you use ivy, but then you'd not be using *.framework but *.jar and a maven-like repo).
You don't need to do this with maven. However, you will probably want to set up a repo to push your releases (for libraries / apps of yours) or to keep a copy of particular third-party libs you use. You can get by without this, but you take the risk that at some point that jar might disappear.
b) Your machine must be configured for wolips to find things. No biggie, but maven doesn't need this. Any machine with maven installed can pull them down.
c) A dev can't just check out your project and build it without setting up their machine in a particular way (perhaps for different versions of WO / Wonder). Maven encapsulates this per project.
d) You need to manage your dependencies twice AFAIK: once in ant, and then in eclipse. i.e., you need to export them from eclipse to make them usable. No need with maven. Declare your dependencies once; works everywhere.
e) Maven follows the by-convention motif. Ant, each to their own. So when I was using WO, I had:
/src/[main | test]/java
/src/[main | test]/resources
/src/[main | test]/components
/src/[main | test]/webserver-resources
The test-phase is encouraged and a built-in phase to your project. Testing is encouraged.
> How is Maven more simple than that? It always seems like Maven becomes an active part of your project as opposed to being a background thing.
I wouldn't want to say that maven is simple. It's powerful, but also widely used and thereby easy to integrate. It can be simple; it can be complicated. But ant is not simple. Look at Wonder's ant scripts. How easy is it to extend for *your* projects?
Lachlan Deck
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Maven (From: David Avendasora <email@hidden>) |
| >Re: Maven (From: Chuck Hill <email@hidden>) |
| >Re: Maven (From: Hugi Thordarson <email@hidden>) |
| >Re: Maven (From: Atli Páll Hafsteinsson <email@hidden>) |
| >Re: Maven (From: David Avendasora <email@hidden>) |