美文网首页服务器
spring-boot-maven-plugin打包插件

spring-boot-maven-plugin打包插件

作者: Docker_Compose | 来源:发表于2020-06-10 12:56 被阅读0次
           <!--设置jar包的名称-->
            <finalName>test-1.0.0</finalName>
            <plugins>
                <plugin>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-maven-plugin</artifactId>
                    <configuration>
                        <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
                        <mainClass>com.liws.test.SpringBootApplication</mainClass>
                        <layout>JAR</layout>
                        <executable>false</executable>
                        <fork>true</fork>
                    </configuration>
                    <executions>
                        <execution>
                            <goals>
                                <goal>repackage</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <!--添加配置跳过测试-->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.22.1</version>
                    <configuration>
                        <skipTests>true</skipTests>
                    </configuration>
                </plugin>
            </plugins>
    

    相关文章

      网友评论

        本文标题:spring-boot-maven-plugin打包插件

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