Apache Maven comparable to Apache ant tools

Source: Internet
Author: User
Tags command line comparable object model version jboss

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/



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.