13.2.4. Using the Spring Boot Maven plugin

Spring Boot团队设计了一个用来将用spring boot创建的项目打包成可执行jar(an executable jar)的Maven Plugin——spring-boot-maven-plugin,将它添加到<plugins>节点处,如果想使用它的话

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

如果使用Spring Boot starter parent pom,你只需添加该插件而无需配置它,除非你想改变定义在partent中的设置,默认设置在spring-boot-starter-parent pom

results matching ""

    No results matching ""