Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
6544d19f
Commit
6544d19f
authored
May 13, 2019
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.1.x'
parents
9f2995af
4c1ef630
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
RepackageMojo.java
...in/java/org/springframework/boot/maven/RepackageMojo.java
+8
-2
No files found.
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java
View file @
6544d19f
...
...
@@ -89,6 +89,13 @@ public class RepackageMojo extends AbstractDependencyFilterMojo {
@Parameter
(
defaultValue
=
"${project.build.directory}"
,
required
=
true
)
private
File
outputDirectory
;
/**
* Name of the generated archive.
* @since 1.0
*/
@Parameter
(
defaultValue
=
"${project.build.finalName}"
,
readonly
=
true
)
private
String
finalName
;
/**
* Skip the execution.
* @since 1.2
...
...
@@ -259,8 +266,7 @@ public class RepackageMojo extends AbstractDependencyFilterMojo {
if
(!
this
.
outputDirectory
.
exists
())
{
this
.
outputDirectory
.
mkdirs
();
}
String
finalName
=
this
.
project
.
getBuild
().
getFinalName
();
return
new
File
(
this
.
outputDirectory
,
finalName
+
classifier
+
"."
return
new
File
(
this
.
outputDirectory
,
this
.
finalName
+
classifier
+
"."
+
this
.
project
.
getArtifact
().
getArtifactHandler
().
getExtension
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment