You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update documentation to mention execution id of repackage goal
This commit updates the documentation to reference the default execution
id of the `repackage` goal when a project uses
`spring-boot-starter-parent`.
Closesgh-14835
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/site/apt/examples/repackage-classifier.apt.vm
+77Lines changed: 77 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,7 @@
29
29
<version>${project.version}</version>
30
30
<executions>
31
31
<execution>
32
+
<id>repackage</id>
32
33
<goals>
33
34
<goal>repackage</goal>
34
35
</goals>
@@ -45,6 +46,38 @@
45
46
</build>
46
47
...
47
48
</project>
49
+
---
50
+
51
+
If you are using `spring-boot-starter-parent`, the `repackage` goal is executed
52
+
automatically in an execution with id `repackage`. In that setup, only the configuration
53
+
should be specified as shown in the following example:
54
+
55
+
---
56
+
<project>
57
+
...
58
+
<build>
59
+
...
60
+
<plugins>
61
+
...
62
+
<plugin>
63
+
<groupId>${project.groupId}</groupId>
64
+
<artifactId>${project.artifactId}</artifactId>
65
+
<executions>
66
+
<execution>
67
+
<id>repackage</id>
68
+
<configuration>
69
+
<classifier>exec</classifier>
70
+
</configuration>
71
+
</execution>
72
+
</executions>
73
+
...
74
+
</plugin>
75
+
...
76
+
</plugins>
77
+
...
78
+
</build>
79
+
...
80
+
</project>
48
81
---
49
82
50
83
This configuration will generate two artifacts: the original one and the repackaged
@@ -84,6 +117,7 @@
84
117
<version>${project.version}</version>
85
118
<executions>
86
119
<execution>
120
+
<id>repackage</id>
87
121
<goals>
88
122
<goal>repackage</goal>
89
123
</goals>
@@ -106,5 +140,48 @@
106
140
same phase, it is important that the jar plugin is defined first (so that it runs before
107
141
the repackage goal).
108
142
143
+
Again, if you are using `spring-boot-starter-parent`, this can be simplified as follows:
0 commit comments