docker-graalvm-maven
docker-graalvm-maven copied to clipboard
The JAVA_HOME environment variable is not defined correctly
[root@localhost DataCenter]# docker run --rm -it \
-v $PWD:/mnt/myproject:rw
-w /mnt/myproject
vegardit/graalvm-maven:latest-java17
mvn clean package
The JAVA_HOME environment variable is not defined correctly, this environment variable is needed to run this program.
I cannot reproduce this, see:
docker run --rm -it vegardit/graalvm-maven:latest-java17 bash
$ echo $JAVA_HOME
/opt/graalvm
$ mvn --version
Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: /opt/maven
Java version: 17.0.9, vendor: GraalVM Community, runtime: /opt/graalvm
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "6.6.22-boot2docker", arch: "amd64", family: "unix"
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. If the issue is still valid, please add a respective comment to prevent this issue from being closed automatically. Thank you for your contributions.