Skip to content

Commit 2d50caf

Browse files
authored
Merge pull request #278 from osscameroon/277-use-maven-4.0.0-rc-4
use maven 4.0.0 rc 4
2 parents 45fe528 + 66cd1ee commit 2d50caf

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/javadoc.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@ jobs:
2323
# Given the fact that this is a multimodule project, build process will take long time so we activate caching
2424
# To know more: https://maven.apache.org/extensions/maven-build-cache-extension/cache.html
2525
cache: 'maven'
26+
27+
- name: Install Maven 4.0.0-rc-4
28+
run: |
29+
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
30+
sudo mv apache-maven-4.0.0-rc-4 /opt/maven
31+
echo "M2_HOME=/opt/maven" >> $GITHUB_ENV
32+
echo "PATH=/opt/maven/bin:$PATH" >> $GITHUB_ENV
33+
34+
- name: Verify Maven version
35+
run: mvn -v
36+
2637
- name: Build Javadoc Site with Maven
2738
#To see the full stack trace of the errors, re-run Maven with the -e switch.
2839
#Re-run Maven using the -X switch to enable full debug logging.

.github/workflows/maven.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ jobs:
3131
# Given the fact that this is a multimodule project, build process will take long time so we activate caching
3232
# To know more: https://maven.apache.org/extensions/maven-build-cache-extension/cache.html
3333
cache: 'maven'
34+
35+
- name: Install Maven 4.0.0-rc-4
36+
run: |
37+
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
38+
sudo mv apache-maven-4.0.0-rc-4 /opt/maven
39+
echo "M2_HOME=/opt/maven" >> $GITHUB_ENV
40+
echo "PATH=/opt/maven/bin:$PATH" >> $GITHUB_ENV
41+
42+
- name: Verify Maven version
43+
run: mvn -v
44+
3445
- name: Build with Maven
3546
#To see the full stack trace of the errors, re-run Maven with the -e switch.
3647
#Re-run Maven using the -X switch to enable full debug logging.

0 commit comments

Comments
 (0)