I am using spring-boot-maven-plugin for creating a fat jar of my project, How can I split version number from the dependency jars getting created inside Boot-Inf/lib. As per my requirement I don't want version to be appended. I tried with maven-dependency-plugin that is working fine, but I need solution with sprint-boot-maven-plugin. Please suggest!!.
You can specify the artifact-name with the maven boot plugin
:
In this case, it will be NewJarName.jar
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<id>repackage</id>
<goals>
<goal>repackage</goal>
</goals>
<configuration>
<finalName>NewJarName</finalName>
</configuration>
</execution>
</executions>
</plugin>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.