MyEclipse self-brought Maven cannot find or own external installation

Source: Internet
Author: User

I use the MyEclipse2015 stable2.0 version.

1. Delete the relevant software
Help--Choose--Enter the post-installation Maven option.

As in my myeclipse, choose components
option, there is already a software about maven.
So you have to delete it first. (Press the "M" key here to find the software at the beginning of M and see if it is related to Maven, then remove.) )



2. Download Plugins

Click Add Site.
input Name:maven (everyone knows, this is as long as you know it)
URL:Http://m2eclipse.sonatype.org/sites/m2e
Click OK.
The plugin is then downloaded and installed by MyEclipse.
PS: Due to network problems, there may be a download failure situation, more than a few times OK. Be patient.

3. Restart MyEclipse (follow the prompts to go)

4. Configure Maven in MyEclipse
Windows--preferenses---Maven (plug-in will have this option installed successfully)--User Settings.
such as:



In the user Settings option, select your own maven settings.xml file. (If you set up a configuration, configure the settings.xml file so that it will work when MyEclipse executes.) )
Click OK.

The Maven2 can be used in myeclipse.

5. Using maven in MyEclipse
When you right-click Run on the project you want to work on, there are a lot of maven options. I don't have to say it, they correspond to MVN clean, mvn install, mvn the package and other commands.

of course, sometimes, you have to use the command line to operate, because MVN-E clean such a command, you can see a more detailed error message,
You can use MVN-E * * * To see more information in order to solve the problem when you feel that the error of the console report is not in your mind.

MyEclipse self-brought Maven cannot find or own external installation

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.