Eclipse (myeclipse) configuration Maven Project

Source: Internet
Author: User

After importing Maven project into MyEclipse in the work, after MVN Eclipse:eclipse is executed in the Pom.xml file directory, the "Maven Dependencies" directory is missing in the project and the project file "is not seen." Project H and. Classpath "found the following prompt ( will cause the Pom file to be modified, dependent dependencies will not be automatically downloaded ):

Browse URLs: http://blog.teamextension.com/m2eclipse-m2e-support-for-maven-eclipse-plugin-projects-497

Eventually the problem is solved.

The following main records address the steps that are addressed (mainly related to the project's two configuration files . project and . Classpath files):

1. Add the following to the. Project file:

<Buildspec>      <Buildcommand>        <name>Orre.maven2builder</name>      </Buildcommand> </Buildspec><Natures>     <Nature>Orre.maven2nature</Nature></Natures>

2. Add the following in the. classpath file:

<ClasspathentryKind= "Con"Path= "Org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">      <attributes>        <attributename= "Maven.pomderived"value= "true"/>      </attributes></Classpathentry>

3. Delete the contents of the. classpath file in the following format (the value of path starts with "M2_repo" related configuration):

4, in the Eclipse or MyEclipse related project execution, clean--"refresh

5. Right-click the project and do the following:

In this case, the problem should be resolved (modify the Pom file, the relevant jar package can be downloaded automatically), if not resolved, can find a normal project, compared with the. classpath and. project files, basically resolves the related issues.

Eclipse (myeclipse) configuration Maven Project

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.