This is an automated email from the ASF dual-hosted git repository.

rec pushed a commit to branch release/3.5.x
in repository https://gitbox.apache.org/repos/asf/uima-ruta.git


The following commit(s) were added to refs/heads/release/3.5.x by this push:
     new 3981a7e8 No issue: Download Maven 3.9.9 for the build and use it
3981a7e8 is described below

commit 3981a7e842e10b1cfd7ac57f744a425efa4b327b
Author: Richard Eckart de Castilho <[email protected]>
AuthorDate: Fri Nov 29 12:05:58 2024 +0100

    No issue: Download Maven 3.9.9 for the build and use it
---
 .github/workflows/maven.yml | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index c3f92df4..50ea0cee 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -29,7 +29,7 @@ jobs:
       uses: actions/checkout@v4
       with:
         ref: ${{ github.head_ref || github.ref }}
-        
+
     - name: Set up JDK ${{ matrix.jdk }}
       uses: actions/setup-java@v4
       with:
@@ -46,15 +46,16 @@ jobs:
         echo "Setting Maven environment variables..."
         echo "M2_HOME=$Env:USERPROFILE\\apache-maven-3.9.9" >> $Env:GITHUB_ENV
         echo "PATH=$Env:M2_HOME\\bin;$Env:PATH" >> $Env:GITHUB_ENV
-  
+
     - name: Set up Maven version on Linux
       if: runner.os == 'Linux'
       run: |
         echo "Downloading Maven..."
         curl -fsSL 
https://downloads.apache.org/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.tar.gz
 -o maven.tar.gz
         tar -xzf maven.tar.gz
-        sudo mv apache-maven-3.9.9 /opt/maven
-        sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn
+        mv apache-maven-3.9.9 $HOME/maven
+        echo "Adding Maven to PATH..."
+        echo "$HOME/maven/bin" >> $GITHUB_PATH
 
     - name: Verify Maven version
       run: mvn --version

Reply via email to