maven ignoring jenv settings

后端 未结 3 1181
暖寄归人
暖寄归人 2021-02-01 00:51

I had OSX with Java 1.6 installed, and I just installed jenv along with Java 1.7:

$ jenv local \'1.7\'
$ jenv versions
  s         


        
相关标签:
3条回答
  • 2021-02-01 01:37

    You need to install the jenv maven plugin, try the following command and reload your shell:

    jenv enable-plugin maven

    0 讨论(0)
  • 2021-02-01 01:44

    I had a similar problem. I got things running by prefixing all command with jenv exec:

    jenv exec mvn -version
    
    0 讨论(0)
  • 2021-02-01 01:51

    Now, there's a new option how to set JAVA_HOME via jenv export plugin:

    jenv enable-plugin export
    

    See https://github.com/gcuisinier/jenv/issues/44#issuecomment-233124185

    0 讨论(0)
提交回复
热议问题