[英]How to deploy a jar built by spring-boot through maven?
I use mvn deploy
command to deploy my jar file to nexus server and it works fine for regular jar. 我使用
mvn deploy
命令将我的jar文件部署到nexus服务器,并且对于常规jar来说运行良好。 But it doesn't work if the jar is packaged by spring-boot-plugin
. 但是,如果jar是通过
spring-boot-plugin
打包的,则无法正常工作。 The header of the jar file is a linux system service script which will be rejected by nexus. jar文件的头是一个linux系统服务脚本,该脚本将被nexus拒绝。
Below is my spring-boot plugin settings: 以下是我的spring-boot插件设置:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.0.2.RELEASE</version>
<configuration>
<executable>true</executable>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
How can I make nexus accepts spring-boot executable jar file? 如何使nexus接受spring-boot可执行jar文件?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.