美文网首页
springboot 05 Build tool plugins

springboot 05 Build tool plugins

作者: Herman7z | 来源:发表于2018-03-22 14:42 被阅读0次
<?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>
    <!-- ... -->
    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>1.4.2.RELEASE</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>

这个配置spring-boot,在执行package命令的时候执行repackage来重新打包

相关文章

网友评论

      本文标题:springboot 05 Build tool plugins

      本文链接:https://www.haomeiwen.com/subject/uqyaqftx.html