Skip to content

Issue targeting JDK with JAVA_HOME #47

Description

@justinwb

Getting the following when specifying JDK11 per the instructions in the README. When nothing is specified for JAVA_HOME it defaults to the latest JDK as expected, which generally works but I have one configuration with a dependency configuration that doesn't play well with latest.

Run qcastel/github-actions-maven-cmd@master
  with:
    maven-args: clean install -Ddockerfile.skip -DdockerCompose.skip -Djib.skip
    m[2](https://github.com/----/-----/runs/555544443?check_suite_focus=true#step:5:2)-home-folder: /root/.m2
  env:
    JAVA_HOME: /usr/lib/jvm/java-11-openjdk/
/usr/bin/docker run --name a95e51[3](https://github.com/----/-----/runs/555544443?check_suite_focus=true#step:5:3)f[4](https://github.com/----/-----/runs/555544443?check_suite_focus=true#step:5:4)622a982481eb194f80b331e2016_a7d76f --label 29a9[5](https://github.com/----/-----//runs/555544443?check_suite_focus=true#step:5:5)e --workdir /github/workspace --rm -e JAVA_HOME -e INPUT_MAVEN-ARGS -e INPUT_MAVEN-REPO-SERVER-ID -e INPUT_MAVEN-REPO-SERVER-USERNAME -e INPUT_MAVEN-REPO-SERVER*** INPUT_M2-HOME-FOLDER -e MAVEN_REPO_SERVER_ID -e MAVEN_REPO_SERVER_USERNAME -e MAVEN_REPO_SERVER_PASSWORD -e MAVEN_ARGS -e M2_HOME_FOLDER -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e GITHUB_STEP_SUMMARY -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/----/-----/":"/github/workspace" 29a95e:513f4[6](https://github.com/----/-----//runs/555544443?check_suite_focus=true#step:5:6)22a[9](https://github.com/----/-----//runs/555544443?check_suite_focus=true#step:5:9)82481eb194f80b331e2016  "mvn-action.sh" "clean install -Ddockerfile.skip -DdockerCompose.skip -Djib.skip"
/github/workspace
INFO - M2 folder '/root/.m2' not empty. We therefore will beneficy from the CI cache
total 0
JAVA_HOME = /usr/lib/jvm/java-11-openjdk/
The JAVA_HOME environment variable is not defined correctly,
this environment variable is needed to run this program.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions