Create a MAVEN project in eclipse

Source: Internet
Author: User

1. First determine if Eclipse has its own maven

Window–> perferences If there is maven, it comes with the Maven plugin, and if not, it needs to be installed on its own.

2. Configure Maven

2.1. Configure the MAVEN installation directory
Open window–> perferences–> maven in turn, expand MAVEN's configuration interface, such as;

Then click installations–> Add to select the Maven installation directory, follow the steps to add, click Apply

2.2. Configuring MAVEN's global setting

Or, under MAVEN, click User Settings, and then select ${maven Install directory}/conf/settings.xml in global Settings. Local repository will automatically change

3. Create a MAVEN project

3.1. In the Eclipse menu bar, click File->new->other->maven->maven Project. Select Location, click Next, select Maven-archetype-webapp, click Next

3.2 Fill in the group ID and artifact ID, version default, click Finish

If an error occurs could not calculate build Plan:plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependenci ES could not being resolved. Then remove the plugin folder from the local repository Org\apache\maven directory.

Create a MAVEN project in eclipse

Related Article

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.