Eclipse hits the war package and the war package is released

1.eclipse import maven project:

file-----Import----Maven-----Existing Maven Projects


Click next-----browse---Select the project to be imported, click OK


Then click finish. At this point the project starts to import.


After importing, you can see the project in the navigation bar. If there are many jar packages configured in the pom, it will take a long time. Please wait until the jar package is downloaded. After the normal import, the following figure is shown:


2. Eclipse hits the war package

Right click on the project ---------Export------Web-----WAR file ------next, as shown below:


Click browse to select the output directory of the war package. Here, select the output to the desktop, fill in the war package name, and click Save-----click Finish. Then you can see the generated war package in the corresponding directory (here is the desktop).


3. Publish the war package to the server (Linux system server)

1. First find the tomcat directory on the server, enter the bin directory, run sh shutdown.sh to close the original project,

2. Delete the original war package of the project and the decompressed directory of the war package, here are Developer and Developer.war

3. Upload the war package

4. Start the war package: use the command to start in the bin directory, the command is sh startup.sh

5. Check the startup status of tomcat: tail -f ./logs/catalina.out

At this point, the import, packaging and publishing of the web project are all completed.



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325599821&siteId=291194637
Recommended