|
|
@ -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());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|