编程知识 cdmana.com

How to package Maven project into war package and deploy it to Tomcat

About Maven Packaging and deployment of the project , What I use here is Eclipse Editor , To make a simple record .

Practice environment

operating system : Windows

IDE: Eclipse

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  Maven build

 

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 .

 

 

版权声明
本文为[Flowers_ New World]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201225140542943h.html

Scroll to Top