...
Build failures may occur if multiple Java versions are installed, and Maven is pointed to the incorrect version i.e. if there is a mismatch in Java versions reported by commands mvn -V
and -version
and java -version
.
Tip |
---|
The best way to prevent this version mismatch is to install Maven before Java 8. |
...