mavenrc can override the java version supplied in zshrc, so you can try to fix that as well using the commands vim ~/.mavenrc and vim ~/.zshrc
mavenrc
zshrc
vim ~/.mavenrc
vim ~/.zshrc