@@ -45,6 +45,11 @@ under the License.
4545 <minimalJavaBuildVersion >11</minimalJavaBuildVersion >
4646 <classWorldsVersion >2.6.0</classWorldsVersion >
4747
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+
4853 <formatter-maven-plugin .version>2.20.0</formatter-maven-plugin .version>
4954 <impsort-maven-plugin .version>1.7.0</impsort-maven-plugin .version>
5055
@@ -434,32 +439,6 @@ under the License.
434439 <excludes >**/its/**</excludes >
435440 </configuration >
436441 </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 >
463442 </executions >
464443 </plugin >
465444 <plugin >
@@ -471,6 +450,39 @@ under the License.
471450 </build >
472451
473452 <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 >
474486 <profile >
475487 <id >maven3</id >
476488 <properties >
@@ -479,17 +491,6 @@ under the License.
479491 <maven .basedir>${project.build.directory} /${maven.dir} </maven .basedir>
480492 </properties >
481493 </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 >
493494 </profiles >
494495
495496</project >
0 commit comments