Skip to content

Not switching versions in a way that Maven recognizes (Mac) #78

@paul-hammant

Description

@paul-hammant

Maven doesn't always follow the directions of jenv on a Mac.

Maven will pick up a set JAVA_HOME (unexported) var from /etc/mavenrc

I hope backticks are preserved in this GH issue .....

JAVA_HOME=`/usr/libexec/java_home -v 1.7`

Of course, it would be better to have a jenv command in there....

JAVA_HOME=`jenv javahome local`

There's no current command that shows the true javahome for 'local' or 'global' JDK, and I think it is needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions