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
554dec1a
Commit
554dec1a
authored
Mar 29, 2019
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document finalName alternative for repackage goal
Closes gh-16334
parent
6c3d64a2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
0 deletions
+45
-0
repackage-name.apt.vm
...-maven-plugin/src/site/apt/examples/repackage-name.apt.vm
+42
-0
index.apt
...oot-tools/spring-boot-maven-plugin/src/site/apt/index.apt
+2
-0
site.xml
...ing-boot-tools/spring-boot-maven-plugin/src/site/site.xml
+1
-0
No files found.
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/site/apt/examples/repackage-name.apt.vm
0 → 100644
View file @
554dec1a
-----
Repackage classifier
-----
Stephane Nicoll
-----
2019-03-29
-----
If you need the repackage jar to have a different local name than the one defined by
the <<<artifactId>>> attribute of the project, simply use the standard <<<finalName>>>
as shown in the following example:
---
<project>
...
<build>
<finalName>my-app</finalName>
<plugins>
...
<plugin>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<executions>
<execution>
<id>repackage</id>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
...
</plugin>
...
</plugins>
...
</build>
...
</project>
---
This configuration will generate the repackaged artifact in <<<target/my-app.jar>>>.
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/site/apt/index.apt
View file @
554dec1a
...
...
@@ -46,6 +46,8 @@ Spring Boot Maven Plugin
* {{{./examples/repackage-classifier.html}Custom repackage classifier}}
* {{{./examples/repackage-name.html}Custom repackage name}}
* {{{./examples/repackage-disable-attach.html}Local repackaged artifact}}
* {{{./examples/exclude-dependency.html}Exclude a dependency}}
...
...
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/site/site.xml
View file @
554dec1a
...
...
@@ -8,6 +8,7 @@
</menu>
<menu
name=
"Examples"
>
<item
name=
"Custom repackage classifier"
href=
"examples/repackage-classifier.html"
/>
<item
name=
"Custom repackage name"
href=
"examples/repackage-name.html"
/>
<item
name=
"Local repackaged artifact"
href=
"examples/repackage-disable-attach.html"
/>
<item
name=
"Exclude a dependency"
href=
"examples/exclude-dependency.html"
/>
<item
name=
"Debug the application"
href=
"examples/run-debug.html"
/>
...
...
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