标签:path exec framework jar spring sts ack test 打包
1、首先打出正常的 jar 包,解压后将 lib 上传到服务器 <build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<layout>ZIP</layout>
<includes>
<include>
<groupId>nothing</groupId>
<artifactId>nothing</artifactId>
</include>
</includes>
</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>
</build>
3、运行 jar 包
nohup java -Dloader.path=/www/wwwroot/lib -jar xxx.jar &
标签:path exec framework jar spring sts ack test 打包
原文地址:https://blog.51cto.com/13559120/2576623