@@ -45,6 +45,11 @@ under the License.
45
45
<minimalJavaBuildVersion >11</minimalJavaBuildVersion >
46
46
<classWorldsVersion >2.6.0</classWorldsVersion >
47
47
48
+ <!-- default maven version, can be override by maven3 profile -->
49
+ <mavenVersion >4.0.0-alpha-2</mavenVersion >
50
+ <maven .dir>maven4</maven .dir>
51
+ <maven .basedir>${project.build.directory} /${maven.dir} </maven .basedir>
52
+
48
53
<formatter-maven-plugin .version>2.20.0</formatter-maven-plugin .version>
49
54
<impsort-maven-plugin .version>1.7.0</impsort-maven-plugin .version>
50
55
@@ -434,32 +439,6 @@ under the License.
434
439
<excludes >**/its/**</excludes >
435
440
</configuration >
436
441
</execution >
437
- <execution >
438
- <id >integration-test</id >
439
- <phase >integration-test</phase >
440
- <goals >
441
- <goal >test</goal >
442
- </goals >
443
- <configuration >
444
- <includes >**/its/**</includes >
445
- <systemPropertyVariables >
446
- <project .version>${project.version} </project .version>
447
- <maven .multiModuleProjectDirectory>${maven.multiModuleProjectDirectory} </maven .multiModuleProjectDirectory>
448
- <maven .basedir>${maven.basedir} </maven .basedir>
449
- </systemPropertyVariables >
450
- </configuration >
451
- </execution >
452
- </executions >
453
- </plugin >
454
- <plugin >
455
- <groupId >org.apache.maven.plugins</groupId >
456
- <artifactId >maven-install-plugin</artifactId >
457
- <version >3.0.1</version >
458
- <executions >
459
- <execution >
460
- <id >default-install</id >
461
- <phase >pre-integration-test</phase >
462
- </execution >
463
442
</executions >
464
443
</plugin >
465
444
<plugin >
@@ -471,6 +450,39 @@ under the License.
471
450
</build >
472
451
473
452
<profiles >
453
+ <profile >
454
+ <id >run-its</id >
455
+ <build >
456
+ <plugins >
457
+ <plugin >
458
+ <groupId >org.apache.maven.plugins</groupId >
459
+ <artifactId >maven-surefire-plugin</artifactId >
460
+ <version >3.0.0-M7</version >
461
+ <configuration >
462
+ <systemPropertyVariables >
463
+ <!-- local repo provided by m-invoker-p:install -->
464
+ <localRepo >${project.build.directory} /local-repo</localRepo >
465
+ <projectVersion >${project.version} </projectVersion >
466
+ <maven .multiModuleProjectDirectory>${maven.multiModuleProjectDirectory} </maven .multiModuleProjectDirectory>
467
+ <maven .basedir>${maven.basedir} </maven .basedir>
468
+ </systemPropertyVariables >
469
+ </configuration >
470
+ <executions >
471
+ <execution >
472
+ <id >integration-test</id >
473
+ <phase >integration-test</phase >
474
+ <goals >
475
+ <goal >test</goal >
476
+ </goals >
477
+ <configuration >
478
+ <includes >**/its/**</includes >
479
+ </configuration >
480
+ </execution >
481
+ </executions >
482
+ </plugin >
483
+ </plugins >
484
+ </build >
485
+ </profile >
474
486
<profile >
475
487
<id >maven3</id >
476
488
<properties >
@@ -479,17 +491,6 @@ under the License.
479
491
<maven .basedir>${project.build.directory} /${maven.dir} </maven .basedir>
480
492
</properties >
481
493
</profile >
482
- <profile >
483
- <id >maven4</id >
484
- <activation >
485
- <activeByDefault >true</activeByDefault >
486
- </activation >
487
- <properties >
488
- <mavenVersion >4.0.0-alpha-2</mavenVersion >
489
- <maven .dir>maven4</maven .dir>
490
- <maven .basedir>${project.build.directory} /${maven.dir} </maven .basedir>
491
- </properties >
492
- </profile >
493
494
</profiles >
494
495
495
496
</project >
0 commit comments