Gitlab CI/CD runner : mvn command not found

前端 未结 4 1943
借酒劲吻你
借酒劲吻你 2021-01-06 06:17

Maven is well installed on my gitlab-runner server. When executing mvn clean directly on my repo it works, when running my pip

4条回答
  •  萌比男神i
    2021-01-06 06:44

    Add maven to PATH:

    $ export M2_HOME=/usr/local/apache-maven/apache-maven-3.3.9
    
    $ export M2=$M2_HOME/bin
    
    $ export PATH=$M2:$PATH 
    

    You can include these commands in $HOME/.bashrc

提交回复
热议问题