devcontainers / devcontainers/images
Correct way to setup plain java with maven?
- Dominant language
- Shell
- Stars
- 2.1k
- Forks
- 963
- Avg merge
- 7h 48m
- Merged PRs (30d)
- 11
Description
I have this
```
"image": "mcr.microsoft.com/devcontainers/java:1-21-bullseye",
"features": {
"ghcr.io/devcontainers/features/java:1": {
"version": "none",
"installMaven": "true",
}
},
```
When running my maven command:
`mvn clean install`
I get the error message:
```
The JAVA_HOME environment variable is not defined correctly,
this environment variable is needed to run this program.
```
I would have expected that JAVA_HOME would be setup? I would also expect that the JDK or JRE installed would be the most upstream origin, eg OpenJDK.. It seems it an MS variant.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.