Use Maven to package the project and upload it to the Linux Server
Maven packaging:
Right-click the project and choose Run as --> Maven build... --> enter the following interface. Note that the red part is filled in. The Goals package indicates packaging. The following Skip Tests indicates that no unit test is executed during packaging.
Click Run. The jar package is in the space, project name, and target. The configuration file is not packaged.
Upload the packaged jar file to the Linux Server:
First, enter the directory to be uploaded through cd, then enter the rz command and press Enter. In the pop-up window, select the package to be uploaded, and run the ls command to check whether the upload is successful.
The upload was successful two days ago and failed today. This step should be okay. I have not checked the cause of my failure, I used another upload method.
I downloaded an ftp upload tool: WinSCP, install, open, my local machine on the left, and the server on the right. Find the jar package to be uploaded, drag it to/home/My username/and run the mv command to move it to the command you want to put.
I am using SecureCRT,
Note that if it is not an administrator, you need to add sudo to the red mobile operation. Enter the password and run the ls command to check whether the operation has been uploaded.
Maven and linux are both new users, and some of them may be incorrect. I just explained my steps and hope to point them out.
Maven details: click here
Maven: click here
Maven 3.1.0 release, Project Build Tool
Install Maven in Linux
Maven3.0 configuration and simple use
Set up sun-jdk and Maven2 in Ubuntu
Get started with Maven
This article permanently updates the link address: