Packaged Springboot-Executable jar Package

Source: Internet
Author: User

Recently started learning Springcloud, want to package the modules in the project, easy to deploy multiple times. But on the internet to find a lot of solutions, have no operational success. Finally check the official website please add a link to describe the document to find a solution, by the way, the successful packaging paste it out.

First, modify the Pom.xml file

<?xml version= "1.0" encoding= "UTF-8"?>
<project xmlns= "http://maven.apache.org/POM/4.0.0" xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"
xsi:schemalocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
<modelVersion>4.0.0</modelVersion>

org.springframework.boot spring-boot-maven-plugin 2.0.3.RELEASE Rep Ackage Here are the main additions to the version and tags. Then, use the MAVEN command to package: After the MVN clean package is finished, you can run it directly with the Java-jar Module.jar. It is also important to note that the Spring Boot 2 version requires more than JDK8, and a low version package will make an error.

Packaged Springboot-Executable jar Package

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.