Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mvn not found on self-hosted runners #61

Closed
fernandezpablo85 opened this issue May 8, 2020 · 2 comments · May be fixed by Exhorder6/setup-java#5, NOUIY/setup-java#6, NOUIY/setup-java#17, NOUIY/setup-java#25 or NOUIY/setup-java#43

Comments

@fernandezpablo85
Copy link

When running:

    - name: Set up JDK 1.11
      uses: actions/setup-java@v1
      with:
        java-version: 1.11

On a self-hosted runner, the build fails saying:

1457fa28-9216-4663-b693-074afad52b42.sh: line 1: mvn: command not found

It works fine on github-hosted runners.

@plamentotev
Copy link

Hi,
setup-java installs only Java (JDK). Maven is pre-installed on the GitHub hosted runners. If you want to use Maven on self-hosted runner you have to either install it on the machine or use another step to setup Maven.

p.s. There is feature request to make it possible to install Maven together with JDK - see #40

@fernandezpablo85
Copy link
Author

thanks for the clarification @plamentotev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment