Use Maven to package the project and upload it to the Linux Server

Source: Internet
Author: User

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.