1, open Eclipse, left click on the upper left file, select New, left click to select Maven Project, the following interface appears:
2, the removal of the hook, choose their own project where the workspace, such as, I built in my workspace workspace05, and then click, Next,
3. Select the following ... webapp, click Next
4, you can fill in the Group ID (preferably fill in your src in the first name of the package), Artifact ID is the name of your project, and then click Finish, so as to build a simple MAVEN project
5, the Maven01 is our new project framework,
6, so just to build a simple project also need to configure some parameters:
1), here we can choose Utf-8,
2), select JRE, click Edi ...
Choose our own JRE package
3), tick the previous option:
4), the correct folder is as follows: If anything on the click Add, add the required files (
7. Then you have the basic information of this project on your pox.xml, and then import the package required for this project.
PS. If you are in 6.4 the package has been wrong, the added folder has not been src/test/resources this situation, but added to the SRC, you can left-click Maven01, select the build Path, choose right to confirm the new Source Folder
Then fill in the Src/test/resources and click Finish
The results we want are as follows:
Create a new MAVEN project step with Eclipse: