[Java] Build tool, Maven, ant, gradlew

Source: Internet
Author: User

To see how manySource code, Connected to several Java build tools

1. MAVEN

I remember that the Tomcat project was built by Maven.

MVN Eclipse: eclipse-ddownloadsources = true-ddownloadjavadocs = true

2. ant

Learning LuceneCode, Check out Lucene code, use ant to build, ant eclipse to build an Eclipse project

An error was prompted at the beginning, saying that Ivy was not found. The Ivy jar package was downloaded and put in the ant lib directory.

> Ant build

> Ant eclipse is built into an Eclipse project

Http://jamesqian.iteye.com/blog/1103370

Method 2: You can import
Select New project --> JAVA project from existing ant buildfile when importing

Finally, only one build. xml file under your workspace is exported.

The premise is that your build. xml should correctly contain all the things you need, such as the resource files and classes you want to use.

3. gradlew

In the past, spring was put on SVN, now on git, after checking out, CMD went to the directory,

> Gradlew build

> Gradlew eclipse is built into an Eclipse project.

After importing eclipse, it is inconvenient to read...

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.