Building Eclipse projects with Maven (take Zorka as an example)

Source: Internet
Author: User

First step: Download and configure Maven

: http://maven.apache.org/download.cgi

Download the second item (binary Zip) after decompression.

Step Two: Add environment variables

maven_home:d:\apache-maven-3.0.2 (Modify according to your own directory)
Path:%maven_home%\bin

After the configuration is complete, use the command line to type mvn-version for testing, and the following screen shows that the configuration was successful.

Step three: Compile the project

    1. Go to the directory where you want to compile the project, execute Mvnpackage, and perform some downloads for the first time and wait. If the download is aborted, you can type MVN clean package to re-execute;
    2. Compile the project into Eclipse code, execute: MVN eclipse:eclipse;
    3. To prevent Lib conflicts, execute mvn clean.

Fourth Step: Import Eclipse

Select "Import"-"existing projects into workspace" in eclipse-navigate to the project folder.

Add: Zorka will error when importing Eclipse,

The method Assertequals (object, Object) isambiguous for the type objectinspectorunittest,

Workaround reference: Http://stackoverflow.com/questions/1811103/java-junit-the-method-x-is-ambiguous-for-type-y

Building Eclipse projects with Maven (take Zorka as an example)

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.