Merge branch '2.1.x'

pull/16831/head
Stephane Nicoll 6 years ago
commit 6544d19fbf

@ -89,6 +89,13 @@ public class RepackageMojo extends AbstractDependencyFilterMojo {
@Parameter(defaultValue = "${project.build.directory}", required = true) @Parameter(defaultValue = "${project.build.directory}", required = true)
private File outputDirectory; private File outputDirectory;
/**
* Name of the generated archive.
* @since 1.0
*/
@Parameter(defaultValue = "${project.build.finalName}", readonly = true)
private String finalName;
/** /**
* Skip the execution. * Skip the execution.
* @since 1.2 * @since 1.2
@ -259,8 +266,7 @@ public class RepackageMojo extends AbstractDependencyFilterMojo {
if (!this.outputDirectory.exists()) { if (!this.outputDirectory.exists()) {
this.outputDirectory.mkdirs(); this.outputDirectory.mkdirs();
} }
String finalName = this.project.getBuild().getFinalName(); return new File(this.outputDirectory, this.finalName + classifier + "."
return new File(this.outputDirectory, finalName + classifier + "."
+ this.project.getArtifact().getArtifactHandler().getExtension()); + this.project.getArtifact().getArtifactHandler().getExtension());
} }

Loading…
Cancel
Save