diff --git a/.github/workflows/javadoc.yml b/.github/workflows/javadoc.yml index c31cf4bb..b9daad86 100644 --- a/.github/workflows/javadoc.yml +++ b/.github/workflows/javadoc.yml @@ -23,6 +23,17 @@ jobs: # Given the fact that this is a multimodule project, build process will take long time so we activate caching # To know more: https://maven.apache.org/extensions/maven-build-cache-extension/cache.html cache: 'maven' + + - name: Install Maven 4.0.0-rc-4 + run: | + curl -sL https://archive.apache.org/dist/maven/maven-4/4.0.0-rc-4/binaries/apache-maven-4.0.0-rc-4-bin.tar.gz | tar xz + sudo mv apache-maven-4.0.0-rc-4 /opt/maven + echo "M2_HOME=/opt/maven" >> $GITHUB_ENV + echo "PATH=/opt/maven/bin:$PATH" >> $GITHUB_ENV + + - name: Verify Maven version + run: mvn -v + - name: Build Javadoc Site with Maven #To see the full stack trace of the errors, re-run Maven with the -e switch. #Re-run Maven using the -X switch to enable full debug logging. diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index f13d6d0e..4261821e 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -31,6 +31,17 @@ jobs: # Given the fact that this is a multimodule project, build process will take long time so we activate caching # To know more: https://maven.apache.org/extensions/maven-build-cache-extension/cache.html cache: 'maven' + + - name: Install Maven 4.0.0-rc-4 + run: | + curl -sL https://archive.apache.org/dist/maven/maven-4/4.0.0-rc-4/binaries/apache-maven-4.0.0-rc-4-bin.tar.gz | tar xz + sudo mv apache-maven-4.0.0-rc-4 /opt/maven + echo "M2_HOME=/opt/maven" >> $GITHUB_ENV + echo "PATH=/opt/maven/bin:$PATH" >> $GITHUB_ENV + + - name: Verify Maven version + run: mvn -v + - name: Build with Maven #To see the full stack trace of the errors, re-run Maven with the -e switch. #Re-run Maven using the -X switch to enable full debug logging.