File tree Expand file tree Collapse file tree 5 files changed +27
-21
lines changed
spring-boot-tools/spring-boot-maven-plugin/src
main/java/org/springframework/boot/maven Expand file tree Collapse file tree 5 files changed +27
-21
lines changed Original file line number Diff line number Diff line change 235
235
<maven-shade-plugin .version>3.2.1</maven-shade-plugin .version>
236
236
<maven-source-plugin .version>3.2.0</maven-source-plugin .version>
237
237
<maven-surefire-plugin .version>2.22.2</maven-surefire-plugin .version>
238
+ <maven-toolchains-plugin .version>3.0.0</maven-toolchains-plugin .version>
238
239
<maven-war-plugin .version>3.2.3</maven-war-plugin .version>
239
240
<versions-maven-plugin .version>2.7</versions-maven-plugin .version>
240
241
<xml-maven-plugin .version>1.0.2</xml-maven-plugin .version>
241
242
<flatten-maven-plugin .version>1.1.0</flatten-maven-plugin .version>
242
- <maven-toolchains-plugin .version>3.0.0</maven-toolchains-plugin .version>
243
243
</properties >
244
244
<dependencyManagement >
245
245
<dependencies >
3335
3335
</plugin >
3336
3336
<plugin >
3337
3337
<groupId >org.apache.maven.plugins</groupId >
3338
- <artifactId >maven-war -plugin</artifactId >
3339
- <version >${maven-war -plugin.version} </version >
3338
+ <artifactId >maven-toolchains -plugin</artifactId >
3339
+ <version >${maven-toolchains -plugin.version} </version >
3340
3340
</plugin >
3341
3341
<plugin >
3342
3342
<groupId >org.apache.maven.plugins</groupId >
3343
- <artifactId >maven-toolchains -plugin</artifactId >
3344
- <version >${maven-toolchains -plugin.version} </version >
3343
+ <artifactId >maven-war -plugin</artifactId >
3344
+ <version >${maven-war -plugin.version} </version >
3345
3345
</plugin >
3346
3346
<plugin >
3347
3347
<groupId >org.codehaus.mojo</groupId >
Original file line number Diff line number Diff line change 25
25
</executions >
26
26
<configuration >
27
27
<toolchains >
28
- <jdk />
28
+ <jdk >
29
+ <version >42</version >
30
+ <vendor >test</vendor >
31
+ </jdk >
29
32
</toolchains >
30
33
</configuration >
31
34
</plugin >
Original file line number Diff line number Diff line change 1
1
<toolchains >
2
2
<toolchain >
3
3
<type >jdk</type >
4
+ <provides >
5
+ <version >42</version >
6
+ <vendor >test</vendor >
7
+ </provides >
4
8
<configuration >
5
9
<jdkHome >jdkHome</jdkHome >
6
10
</configuration >
Original file line number Diff line number Diff line change 1
1
def file = new File (basedir, " build.log" )
2
2
return file. text. contains(" The Maven Toolchains is awesome!" )
3
-
Original file line number Diff line number Diff line change @@ -69,6 +69,20 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
69
69
@ Parameter (defaultValue = "${project}" , readonly = true , required = true )
70
70
private MavenProject project ;
71
71
72
+ /**
73
+ * The current Maven session. This is used for toolchain manager API calls.
74
+ * @since 2.3.0
75
+ */
76
+ @ Parameter (defaultValue = "${session}" , readonly = true )
77
+ private MavenSession session ;
78
+
79
+ /**
80
+ * The toolchain manager to use to locate a custom JDK.
81
+ * @since 2.3.0
82
+ */
83
+ @ Component
84
+ private ToolchainManager toolchainManager ;
85
+
72
86
/**
73
87
* Add maven resources to the classpath directly, this allows live in-place editing of
74
88
* resources. Duplicate resources are removed from {@code target/classes} to prevent
@@ -209,20 +223,6 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
209
223
@ Parameter (property = "spring-boot.run.skip" , defaultValue = "false" )
210
224
private boolean skip ;
211
225
212
- /**
213
- * The Maven Session Object.
214
- * @since 2.2.1
215
- */
216
- @ Parameter (defaultValue = "${session}" , readonly = true )
217
- private MavenSession session ;
218
-
219
- /**
220
- * The toolchain manager to use.
221
- * @since 2.2.1
222
- */
223
- @ Component
224
- private ToolchainManager toolchainManager ;
225
-
226
226
@ Override
227
227
public void execute () throws MojoExecutionException , MojoFailureException {
228
228
if (this .skip ) {
You can’t perform that action at this time.
0 commit comments