Myecplise New MAVEN Project filter Select, use MyEclipse to build Maven project

Source: Internet
Author: User

Myecplise New MAVEN Project filter selection

Build a MAVEN project using MyEclipse 
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
Step through Reading

MAVEN is a management project, and MyEclipse is writing code. The first time you write a project you have to configure a lot of things, very troublesome, now look at how to create a new MAVEN project.

Tools/Materials
    • MyEclipse
    • Maven
Method/Step
  1. 1

    Because the tutorials used by Maven are self-configuring, they are not using MyEclipse (the higher version of MyEclipse comes with maven). So first you have to install MAVEN. MAVEN's download installation can refer to the following experience.

    Download configuration for 0maven

  2. 2

    Open MyEclipse (used in this experience is myeclipse2014), window-->preferences.

  3. Find Myeclipse-->maven4myeclipse and check the two boxes if you want to download the source code and help documentation.

  4. Find installations under Maven4myeclipse and add the maven you installed.

  5. Locate the user settings. Set the user settings to Cfon/settings.xml under the MAVEN project, OK.

  6. Create a new Web project, tick add Maven Support,java version to be at 1.7 and above.

  7. Then go all the way to the project structure and choose MAVEN's project structure.

  8. If you're lucky, there's nothing wrong with the new project. If you are prompted with an error:

    Failure to transfer org.apache.maven:maven-artifact:pom:2.0.6 from Http://repo.maven.apache.org/maven2 is cached in The local repository, resolution is not being reattempted until the update interval of the central have elapsed or updates are F orced. Original error:could not transfer artifact org.apache.maven:maven-artifact:pom:2.0.6 from/to Central (HTTP// REPO.MAVEN.APACHE.ORG/MAVEN2): No connector available to access repository Central (http://repo.maven.apache.org/ MAVEN2) of type default using the available factories Pom.xml/hello Line 1 Maven Configuration problem

  9. In that case, open the window-->preferences-->myeclipse-->maven4myeclipse--->user settings copy the address inside the local repository.

    If you don't have a myeclipse, you'll find:

    c:\users\{your computer account}\.m2\repository (usually in this folder).

    Like mine: C:\users\long\.m2\repository.

  10. Find the repository file and search for maven*.lastupdated. Delete all the documents that have been searched out.

  11. Restart MyEclipse, right-click Project--->maven4myeclipse--->update project ...

  12. Tick force Update of snapshots/releases, then OK exit, if still wrong, do not worry, wait for a while. If after a while or is wrong, then ask the Niang bar. If it's settled, please vote for me.

Myecplise New MAVEN Project filter Select, use MyEclipse to build Maven project

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.