After work to learn to build MAVEN project, Export War package is a variety of errors emerge. Let's share the process of exporting the war package below.
Method One: Pure manual export
First get the project sorted out, and then go to the war package.
1, right key project name, select Maven4myeclipse, select Update Project Configuration
Click OK directly in the pop-up window, as shown in the following figure
2, clean up project (as shown in the following figure)
Select the item in the pop-up window and click OK (as shown in the following image)
3, the last install project can
Click the item right, run as, and select Maven install (as shown in the following image)
At this point, you can view the package process to the console (as shown in the following illustration)
In this case, the package is successful and the war package and jar package are viewed in the appropriate directory
Method Two: Use the command line to package
First to get into the project, my project is D:\Workspaces\MyEclipse 10\maven_project Maven Webapp
Enter project using DOS command (CMD)
You can use the Maven Clean Package command
The following figure, package success.