Skip to content

Commit f5ab823

Browse files
committed
Fixed #496 - Upgrade Maven 4.0.0 to rc-4
1 parent dd71532 commit f5ab823

File tree

10 files changed

+41
-10
lines changed

10 files changed

+41
-10
lines changed

.github/workflows/pull-m4.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Set up Maven
4444
uses: stCarolas/setup-maven@v5
4545
with:
46-
maven-version: 4.0.0-beta-4
46+
maven-version: 4.0.0-rc-4
4747
- name: Build with Maven
4848
run: mvn verify -Prun-its -e -B -V --no-transfer-progress
4949

.github/workflows/push-issue-m4.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ jobs:
3939
- name: Set up Maven
4040
uses: stCarolas/setup-maven@v5
4141
with:
42-
maven-version: 4.0.0-beta-4
42+
maven-version: 4.0.0-rc-4
4343
- name: "Building with Maven."
4444
run: mvn verify -e -B -V --no-transfer-progress

itf-documentation/src/main/asciidoc/release-notes/_release-notes-0.14.0.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
:issue-488: https://github.com/khmarbaise/maven-it-extension/issues/488[Fixed #488]
4848
:issue-492: https://github.com/khmarbaise/maven-it-extension/issues/492[Fixed #492]
4949
:issue-495: https://github.com/khmarbaise/maven-it-extension/issues/495[Fixed #495]
50+
:issue-496: https://github.com/khmarbaise/maven-it-extension/issues/496[Fixed #496]
5051
:issue-499: https://github.com/khmarbaise/maven-it-extension/issues/499[Fixed #499]
5152
:issue-502: https://github.com/khmarbaise/maven-it-extension/issues/502[Fixed #502]
5253
:issue-504: https://github.com/khmarbaise/maven-it-extension/issues/504[Fixed #504]
@@ -103,7 +104,7 @@
103104
* {issue-508} - Upgrade smpp to 7.0.4
104105
* {issue-511} - Upgrade JUnit-BOM 5.13.0
105106
* {issue-513} - Upgrade smpp to 7.0.5
106-
* {issue-???} - ?
107+
* {issue-???} - ?
107108

108109
*Build Improvements*
109110

@@ -117,6 +118,7 @@
117118
* {issue-488} - Upgrade to Maven 4.0.0 Beta 4 + Maven 3.9.9
118119
* {issue-509} - Upgrade asciidoctor-maven-plugin 3.2.0
119120
* {issue-515} - Maven 4.0.X
121+
* {issue-496} - Upgrade to Maven 4.0.0 rc-4
120122

121123
*Documentation Improvements*
122124

itf-examples/src/test/java/com/soebes/itf/examples/MvnDirectoryIT.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ void hidden_files_only(MavenExecutionResult result) {
7272
assertThat(result)
7373
.isSuccessful()
7474
.out()
75-
.warn().isEmpty();
75+
.warn()
76+
//FIXME:This is currently required for Maven 4.0.0-rc-3 because the setup is not yet in alignment with Maven 4.0.0
77+
.filteredOn(s -> !s.contains("Pre-Maven 4 legacy encrypted password detected"))
78+
.filteredOn(s -> !s.contains("Some problems were encountered while building the effective settings"))
79+
.isEmpty();
7680
}
7781

7882
}

itf-examples/src/test/java/com/soebes/itf/examples/defaults/DefaultsForAllIT.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,16 @@ void option_debug(MavenExecutionResult result) {
4545
"--- jar:3.4.2:jar (default-jar) @ kata-fraction ---",
4646
"--- site:3.21.0:attach-descriptor (attach-descriptor) @ kata-fraction ---"
4747
);
48+
4849
assertThat(result)
4950
.isSuccessful()
5051
.out()
51-
.warn().isEmpty();
52+
.warn()
53+
//FIXME:This is currently required for Maven 4.0.0-rc-3 because the setup is not yet in alignment with Maven 4.0.0
54+
.filteredOn(s -> !s.startsWith("Pre-Maven 4"))
55+
.filteredOn(s -> !s.contains("Some problems were encountered while building the effective settings"))
56+
.isEmpty();
57+
5258
assertThat(result)
5359
.isSuccessful()
5460
.out()

itf-examples/src/test/java/com/soebes/itf/examples/goals/GoalsIT.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ void no_goals_at_all(MavenExecutionResult result) {
5151
assertThat(result)
5252
.isSuccessful()
5353
.out()
54-
.warn().isEmpty();
54+
.warn()
55+
//FIXME:This is currently required for Maven 4.0.0-rc-3 because the setup is not yet in alignment with Maven 4.0.0
56+
.filteredOn(s -> !s.contains("Pre-Maven 4 legacy encrypted password detected"))
57+
.filteredOn(s -> !s.contains("Some problems were encountered while building the effective settings"))
58+
.isEmpty();
5559

5660
}
5761

itf-examples/src/test/java/com/soebes/itf/examples/goals/GoalsOnClassIT.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ void goal_clean(MavenExecutionResult result) {
4747
assertThat(result)
4848
.isSuccessful()
4949
.out()
50-
.warn().isEmpty();
50+
.warn()
51+
//FIXME:This is currently required for Maven 4.0.0-rc-3 because the setup is not yet in alignment with Maven 4.0.0
52+
.filteredOn(s -> !s.contains("Pre-Maven 4 legacy encrypted password detected"))
53+
.filteredOn(s -> !s.contains("Some problems were encountered while building the effective settings"))
54+
.isEmpty();
5155
}
5256

5357
}

itf-examples/src/test/java/com/soebes/itf/examples/options/OptionsIT.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ void no_options_at_all(MavenExecutionResult result) {
5959
assertThat(result)
6060
.isSuccessful()
6161
.out()
62-
.warn().isEmpty();
62+
.warn()
63+
//FIXME:This is currently required for Maven 4.0.0-rc-3 because the setup is not yet in alignment with Maven 4.0.0
64+
.filteredOn(s -> !s.contains("Pre-Maven 4 legacy encrypted password detected"))
65+
.filteredOn(s -> !s.contains("Some problems were encountered while building the effective settings"))
66+
.isEmpty();
6367
assertThat(result)
6468
.isSuccessful()
6569
.out()

itf-examples/src/test/java/com/soebes/itf/examples/profiles/ProfileOnClassIT.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,14 @@ void profile_1_2_3(MavenExecutionResult result) {
4646
assertThat(result)
4747
.isSuccessful()
4848
.out()
49-
.warn().containsExactly("Message for Profile 1", "Message for Profile 2", "Message for Profile 3");
49+
.warn().satisfies(s -> {
50+
assertThat(s.get(0)).startsWith("Detected 8 pre-Maven 4 legacy encrypted password(s) - configure password encryption with the help of mvnenc for increased security. @ ");
51+
assertThat(s).containsSequence(
52+
"Message for Profile 1",
53+
"Message for Profile 2",
54+
"Message for Profile 3"
55+
);
56+
});
5057
}
5158

5259
@MavenTest

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
<groupId>org.apache.rat</groupId>
211211
<artifactId>apache-rat-plugin</artifactId>
212212
<configuration>
213-
<excludes combine.children="append">
213+
<excludes>
214214
<exclude>.github/ISSUE_TEMPLATE/feature_request.md</exclude>
215215
<exclude>.github/ISSUE_TEMPLATE/bug_report.md</exclude>
216216
<exclude>.github/ISSUE_TEMPLATE/config.yml</exclude>

0 commit comments

Comments
 (0)