To create an executable jar, we need to add spring-boot-maven-plugin to our pom.xml. To do this, insert the following lines directly below the dependencies section:

Source: Internet
Author: User

to create an executable jar, we need to add spring-boot-maven-plugin to our pom.xml . To do this, dependencies Insert the following lines directly below the section :

1 2     3         4             5             6         7     8 </build>

not everyone likes to go from spring-boot-starter-parent POM inheritance . You may have your own corporate standard parents that you need to use or you might prefer to explicitly declare all MAVEN configurations.

If you don't want to use it spring-boot-starter-parent , you can still use a scope=import Dependencies to maintain the benefits of dependency management (rather than plug-in management) , as follows:

1<dependencyManagement>2<dependencies>3<dependency>4<!--Import Dependency Management from Spring Boot--5<groupId>org.springframework.boot</groupId>6<artifactId>spring-boot-dependencies</artifactId>7<version>2.0.0.BUILD-SNAPSHOT</version>8<type>pom</type>9<scope>Import</scope>Ten</dependency> One</dependencies> A</dependencyManagement>

To create an executable jar, we need to add spring-boot-maven-plugin to our pom.xml. To do this, insert the following lines directly below the dependencies section:

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.