Skip to content
Advertisement

Spring Boot control target JAR file name

My Spring Boot project has build description:

JavaScript

I want my JAR file name to be app-1.0-SNAPSHOT.jar in one branch and 1.0-RELEASE.jar in another, controlled by Jenkins (using some kind of mvn settings or JVM argument such as -D..

Can I do this?

Advertisement

Answer

You can specify the artefact-name with the maven boot plugin:

In this case, it will be NewJarName.jar

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement