MyEclipse import Maven project

There are two ways to import:

1. Use the common project import of MyEclipse, the steps are as follows:

1> Open dos first, run mvn eclipse:eclipse in the project root directory (mywebapp), after the operation is completed, you will find that there are two more files .classpath and .project in the project directory, which is the eclise project file, of course MyEclipse also recognizes.

2> Use the import function of MyEclipse, select File-->Import...-->Existing Projects into workspace, select the project directory, and import it.

3>Associate Maven, the imported project is just an ordinary project and will not be associated with the Maven plug-in. At this time, right-click on the project, Maven4MyEclipse--->Enable Dependency Management, so that this project is associated with the Maven plug-in (After the association, an M symbol will appear in the upper left corner of the project root node)

2. Use MyEclipse's Maven project to import, the steps are as follows:

1> Use the import function of MyEclipse, select File--->Import...-->Existing Maven Projects, select the project directory, and import. Import here, MyEclipse may update the index online, which is very slow. We can cancel (click the red button in the progress panel), this is the project imported, but did not perform the due operation, such as Maven's Dependency operation, then proceed to the second step

2> Update the project configuration, right-click the project-->Maven4MyEclipse-->Update Project Configuration .

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327065658&siteId=291194637