pom代码
org.apache.maven.plugins maven-surefire-plugin2.22.2 true org.apache.maven.plugins maven-compiler-plugin3.8.1 1.8 UTF-8 org.springframework.boot spring-boot-maven-plugintrue com.iristar.TestApplication repackage repackage
set path=%PATH%;dll java -jar ./target/evalserver-1.0-SNAPSHOT.jar spring.config.addition-location=./application.properties #!/bin/bash export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./dll java -jar ./target/evalserver-1.0-SNAPSHOT.jar spring.config.addition-location=./application.properties
pom代码
org.springframework.boot spring-boot-maven-plugin-Dfile.encoding=UTF-8 com.iristar.center.ht.ApiServer org.apache.maven.plugins maven-surefire-plugintrue org.apache.maven.plugins maven-compiler-plugin1.8 utf8 -XDignore.symbol.file true org.codehaus.mojo appassembler-maven-plugin2.0.0 Make Assembly package assemble ${project.build.directory}/product unix windows lib bin conf true src/main/resources flat UTF-8 logs tmp com.iristar.center.ht.ApiServer ApiServer -server -Xmx2G -Xms2G -Dfile.encoding=UTF-8 src/main/java **/*.xml **/*.properties **/*.yml false src/main/resources **/*.* false
命令如下
mvn clean package appassembler:assemble
windows下提示输入行太长
解决方法:
将原来的引入包的地方全部删掉,改为*
windows下提示找不到动态库
解决方法:
setx -m PATH “%PATH%;./”
linux下提示找不到动态库
解决方法:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./