On Apr 1, 9:05 pm, Jae Lee <[email protected]> wrote:
> haven't used Maven myself, just out of interest, can you iterate benefits
> that it gives?

Since you asked, for me the main benefits are as follows.

Dependency management
I can explicitly define what 3rd-party projects my project depends on.
These dependencies are downloaded as needed from public (or private)
repositories. There is a vast number of projects published to the
public repos (including a good number of Google projects), searchable
through sites like http://jarvana.com/
Any project which depends on mine will also automatically pull in my
dependences. This means no need to store jar binaries in revision
control, nor any need to build uber-jars with all dependencies bundled
with your code.

Configuration by convention
Maven encourages standard directory layouts and practices, lowering
the barrier to entry when moving from one maven project to another.

Plugins
There are a large number of plugins for different requirements:
http://maven.apache.org/plugins/index.html
http://mojo.codehaus.org/plugins.html
Where a plugin doesn't exist to do what is required, ant snippets can
be embedded into the maven build file.

Build lifecycle
The maven build file describes the whole project, so once a project is
defined, a large number of useful commands are immediately available,
for example some commands I use frequently:

# runs tests builds jars and installs in my local repository so my
other local projects can access it
mvn clean install

# same as above, but uploads to the configured public repository
mvn deploy

# increments the version number, adds a tag to revision control,
uploads to the public repo, generates a build website with build
reports and project info
mvn release:prepare release:deploy

# Writes out the configuration files for my IDE so I can immediately
import the project and start developing
mvn eclipse:eclipse

Here is a good summary which I suggest you read:
http://www.javafaq.nu/java-article-print1168.html

Some other perspectives on ant vs maven:
http://stackoverflow.com/questions/80622/maven-or-ant
http://javamoods.blogspot.com/2010/02/maven-vs-ant-stop-battle.html

cheers

-- 
You received this message because you are subscribed to the Google Groups "Wave 
Protocol" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/wave-protocol?hl=en.

Reply via email to