About Maven Packaging and deployment of the project , What I use here is Eclipse Editor , To make a simple record .
operating system ： Windows
Packaging deployment process
1 Project package
1.1 Right click on the item you want to package , Click as shown in the figure
Maven clean, here Maven It will clear all the packaging information about this project before .
1.2 Carries out an
Maven clean After the operation , stay eclipse The following message will appear on the console of .
1.3 Then we re right-click the project we want to package , Click as shown in the figure
1.4 In the pop-up screen , Do the operation as shown in the figure below .
“Goals” Enter... In the input box
-X package, Also check below
Update Snapshots and
Skip Tests Option box .
1.5 The following result indicates that the package is successful .
1.6 Refresh our project , We can work on the
target We'll find our packed ones in the catalog
war package .
2 Project deployment
2.1 Pack up the above
war Bag to put our tomcat Of webapps Under the table of contents . As shown in the figure .