This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
fixup! [MVN] Update compilation with Maven 3.9.X Minimum compatibilit… #83
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java CI with Maven | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: 21 | |
- name: Update Maven to 3.9.X | |
run: | | |
# Needed for Tycho 4.X.X and support for JDK 21 | |
wget https://dlcdn.apache.org/maven/maven-3/3.9.7/binaries/apache-maven-3.9.7-bin.tar.gz | |
tar -xvf apache-maven-3.9.7-bin.tar.gz | |
mv apache-maven-3.9.7 /opt/ | |
M2_HOME='/opt/apache-maven-3.9.7' | |
PATH="$M2_HOME/bin:$PATH" | |
export PATH | |
# Overwrite PATH with updated maven install | |
echo $PATH > $GITHUB_PATH | |
echo "=== Check if well installed ===" | |
echo "$ mvn -version" | |
mvn -version | |
- name: Build with Maven | |
run: mvn verify | |
working-directory: eu.project-simple.parent |