Skip to content

mvn not found on self-hosted runners #61

Closed

Description

@fernandezpablo85

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.

Activity

  1. plamentotev commented on May 10, 2020

    @plamentotev

    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

  2. fernandezpablo85 commented on May 11, 2020

    @fernandezpablo85
    Author

    thanks for the clarification @plamentotev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions