Skip to content

Commit 6544d19

Browse files
committed
Merge branch '2.1.x'
2 parents 9f2995a + 4c1ef63 commit 6544d19

File tree

1 file changed

+8
-2
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven

1 file changed

+8
-2
lines changed

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ public class RepackageMojo extends AbstractDependencyFilterMojo {
8989
@Parameter(defaultValue = "${project.build.directory}", required = true)
9090
private File outputDirectory;
9191

92+
/**
93+
* Name of the generated archive.
94+
* @since 1.0
95+
*/
96+
@Parameter(defaultValue = "${project.build.finalName}", readonly = true)
97+
private String finalName;
98+
9299
/**
93100
* Skip the execution.
94101
* @since 1.2
@@ -259,8 +266,7 @@ private File getTargetFile() {
259266
if (!this.outputDirectory.exists()) {
260267
this.outputDirectory.mkdirs();
261268
}
262-
String finalName = this.project.getBuild().getFinalName();
263-
return new File(this.outputDirectory, finalName + classifier + "."
269+
return new File(this.outputDirectory, this.finalName + classifier + "."
264270
+ this.project.getArtifact().getArtifactHandler().getExtension());
265271
}
266272

0 commit comments

Comments
 (0)