Skip to content

Commit 04fd420

Browse files
ruhan1claude
andcommitted
Install Maven 3.8.8 explicitly to avoid Java 17 requirement
Maven 3.9.0+ enforces stricter Java prerequisites for plugins. The quarkus-maven-plugin:3.6.9 requires Java 17 to execute when used with Maven 3.9.x, even though it's compiled for Java 11. Maven 3.8.8 (last pre-3.9 version) doesn't enforce this check, allowing the build to work with Java 11. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 2f4fc3d commit 04fd420

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/merge-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ jobs:
4444
architecture: x64
4545
java-version: 11
4646

47+
- name: Set up Maven
48+
uses: stCarolas/setup-maven@v4.5
49+
with:
50+
maven-version: 3.8.8
51+
4752
- name: maven-settings-xml-action
4853
uses: whelk-io/maven-settings-xml-action@v14
4954
if: ${{ github.event.repository.fork == false }}

.github/workflows/pr-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ jobs:
3535
java-version: '11'
3636
distribution: 'adopt'
3737

38+
- name: Set up Maven
39+
uses: stCarolas/setup-maven@v4.5
40+
with:
41+
maven-version: 3.8.8
42+
3843
- name: maven-settings-xml-action
3944
uses: whelk-io/maven-settings-xml-action@v14
4045
with:

0 commit comments

Comments
 (0)