【发布时间】:2018-11-07 14:03:47
【问题描述】:
我使用mvn deploy 命令将我的jar 文件部署到nexus 服务器,它适用于普通jar。但是如果jar是spring-boot-plugin打包的话就不行了。 jar文件的头部是一个linux系统服务脚本,会被nexus拒绝。
下面是我的 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>
如何让nexus 接受spring-boot 可执行jar 文件?
【问题讨论】:
标签: java spring maven spring-boot nexus