17Tech May 28 Message: Apache MAVEN is a potential replacement for a potentially Java-based Apache ant build tool. Comparison between the two:
First: The ant script can be run directly in Maven. The biggest difference between Maven and Ant is that maven compiles and all scripts have a foundation, the POM (Project object model). This model defines all aspects of the project, and then a wide variety of scripts work on the model, and ant is completely defined by itself, and Maven is clearly better.
Second: Maven has a clear definition of the package to rely on, such as the use of that package, the version of how much, at a glance. Ant, in general, is simply inclde all the jars. The end result is that you simply cannot determine which version of the common-logging is under the Lib in JBoss, and the only way to do that is to open the Meta-inf directory MANIFEST.MF. It is estimated that JBoss will turn to maven sooner or later.
Third: MAVEN is based on the central warehouse of the compiler, that is, the resources needed to compile a central warehouse, such as Jar,tld,pom, and so on. When compiled, Maven automatically finds the appropriate package in the warehouse and downloads it locally from the set up remote repository if the local repository does not. It's all automatic, and ant needs to define it for itself. The result of this benefit is that projects compiled with MAVEN will only need to publish the source code when it is released, but instead, Ant's release will have to publish all of the packages together, and obviously Maven has won.
Four: Maven has a large number of reusable scripts that can be leveraged, such as generating web sites, generating javadoc,sourcecode reference, and so on. and Ant needs to write it on its own. Try the effect of Maven site.
Five: MAVEN's current weakness is that there is no GUI interface as mature as ant, but Mavengui is working on it. The best way to use Maven at the moment is the command line, fast and easy.
Mavenide website offers a variety of popular development tools under the corresponding Plug-ins
http://maven.apache.org/