From 554dec1a3eeafe0c1ff4bf7182904aefcae5f674 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Fri, 29 Mar 2019 10:19:14 +0100 Subject: [PATCH] Document finalName alternative for repackage goal Closes gh-16334 --- .../site/apt/examples/repackage-name.apt.vm | 42 +++++++++++++++++++ .../src/site/apt/index.apt | 2 + .../src/site/site.xml | 1 + 3 files changed, 45 insertions(+) create mode 100644 spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/site/apt/examples/repackage-name.apt.vm diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/site/apt/examples/repackage-name.apt.vm b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/site/apt/examples/repackage-name.apt.vm new file mode 100644 index 0000000000..3dbd580c23 --- /dev/null +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/site/apt/examples/repackage-name.apt.vm @@ -0,0 +1,42 @@ + ----- + 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 <<>> attribute of the project, simply use the standard <<>> + as shown in the following example: + +--- + + ... + + my-app + + ... + + ${project.groupId} + ${project.artifactId} + ${project.version} + + + repackage + + repackage + + + + ... + + ... + + ... + + ... + +--- + + This configuration will generate the repackaged artifact in <<>>. diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/site/apt/index.apt b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/site/apt/index.apt index 2c0d71d3de..64cd7a049a 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/site/apt/index.apt +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/site/apt/index.apt @@ -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}} diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/site/site.xml b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/site/site.xml index c393e2ceb6..6711b55c15 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/site/site.xml +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/site/site.xml @@ -8,6 +8,7 @@ +