Skip to content

Commit 2b15384

Browse files
committed
Adjust gav sub modules order; fix maven compiler plugin
Signed-off-by: Ricardo Zanini <[email protected]>
1 parent 107e649 commit 2b15384

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

client/integration-tests/gav/pom.xml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@
1818
<maven.compiler.target>17</maven.compiler.target>
1919
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2020
<tested.version>${project.version}</tested.version>
21+
<version.maven.invoker.plugin>3.6.1</version.maven.invoker.plugin>
2122
</properties>
2223

2324
<build>
2425
<plugins>
2526
<plugin>
2627
<groupId>org.apache.maven.plugins</groupId>
2728
<artifactId>maven-invoker-plugin</artifactId>
28-
<version>3.6.1</version>
29+
<version>${version.maven.invoker.plugin}</version>
2930
<configuration>
3031
<projectsDirectory>src/it</projectsDirectory>
3132
<cloneProjectsTo>${project.build.directory}/it-work</cloneProjectsTo>
@@ -38,19 +39,31 @@
3839
<!-- pass-through from outer -P… ; fallback provided below -->
3940
<consume.profile>${consume.profile}</consume.profile>
4041
</properties>
41-
<!-- Both projects run with the same goals, order is lexical: 01-* then 02-* -->
4242
<goals>
4343
<goal>clean</goal>
4444
<goal>install</goal>
4545
</goals>
4646
</configuration>
4747
<executions>
4848
<execution>
49-
<id>run-gav-it</id>
49+
<id>it-01-install-gav-sources</id>
5050
<phase>install</phase>
51-
<goals>
52-
<goal>run</goal>
53-
</goals>
51+
<goals><goal>run</goal></goals>
52+
<configuration>
53+
<pomIncludes>
54+
<pomInclude>01-install-gav-sources/pom.xml</pomInclude>
55+
</pomIncludes>
56+
</configuration>
57+
</execution>
58+
<execution>
59+
<id>it-02-consume-gav</id>
60+
<phase>install</phase>
61+
<goals><goal>run</goal></goals>
62+
<configuration>
63+
<pomIncludes>
64+
<pomInclude>02-consume-gav/pom.xml</pomInclude>
65+
</pomIncludes>
66+
</configuration>
5467
</execution>
5568
</executions>
5669
</plugin>

client/integration-tests/gav/src/it/02-consume-gav/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<version.assertj.core>3.27.6</version.assertj.core>
2424
<version.maven.surefire.plugin>3.3.1</version.maven.surefire.plugin>
25-
<version.maven.compiler.plugin>3.14.1</version.maven.compiler.plugin>
25+
<version.maven.compiler.plugin>3.8.1</version.maven.compiler.plugin>
2626
</properties>
2727

2828
<dependencyManagement>

0 commit comments

Comments
 (0)