Having JAVA_HOME inconsistency issue with maven

后端 未结 7 2150
春和景丽
春和景丽 2021-02-08 11:32

I am on the verge of releasing a project but it seem JAVA_HOME is been inconsistent. Maybe it\'s been overridden somewhere else? I am using ubuntu 14.04 and I have openjdk-7, ja

7条回答
  •  北恋
    北恋 (楼主)
    2021-02-08 11:46

    Creating a file .mavenrc on my home folder and adding the code below solved the problem for me. (Ubuntu 14.10, Maven 3.2.1)

    export JAVA_HOME=/usr/lib/jvm/java-8-oracle
    

提交回复
热议问题