You need to install the jenv maven plugin, try the following command and reload your shell:
Answer from tenfourty on Stack Overflowjenv enable-plugin maven
GitHub
github.com › jenv › jenv
GitHub - jenv/jenv: Manage your Java environment · GitHub
eval "$(jenv init -)" # if not already restarted your shell jenv enable-plugin export
Starred by 6.6K users
Forked by 398 users
Languages Shell 99.0% | Dockerfile 1.0%
Jenv
jenv.be
jEnv - Manage your Java environment
$ echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.zshrc $ echo 'eval "$(jenv init -)"' >> ~/.zshrc · $ eval "$(jenv init -)" $ jenv enable-plugin export
java - maven ignoring jenv settings - Stack Overflow
Now, there's a new option how to set JAVA_HOME via jenv export plugin: ... Save this answer. ... Show activity on this post. If you have enabled the maven and export plugins, and still have problems, check that you don't have a ~/.mavenrc file which is setting JAVA_HOME. More on stackoverflow.com
maven - Jenv is not picking up the system installed java - Stack Overflow
I have jenv installed. The output of which java was initially /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java. I issues the following commands: jenv add /Library/Java/ More on stackoverflow.com
jenv: no such command `enable-plugin'
Hello, I'm facing a weird issue on my mac. Whenever I try: $> jenv enable-plugin maven 10:09 fbiville@VID01701 jenv: no such command `enable-plugin' However, $> jenv help enable-plugi... More on github.com
Issue in the output of "enable-plugin export" command
Hello, As you can see in the following screenshot, there is a small issue in the output produced by the jenv enable-plugin export command: Namely the "echo export plugin activated", which should be "export plugin activated" but on a new ... More on github.com
Cd2h
labs.cd2h.org › gitforager › repository › repository.jsp
CD2H gitForager
$ jenv enable-plugin export You may restart your session to activate jenv export plugin echo export plugin activated
Top answer 1 of 2
12
According to documentation eval "$(jenv init -)" should print to console some command which you need to execute (they suggest to add them to .bash_profile).
2 of 2
0
jenv versions showed the current version was system. I am not sure why that version was not proper. I set the global version to 1.8.0.121 and everything is working as expected.
GitHub
github.com › jenv › jenv › issues › 64
jenv: no such command `enable-plugin' · Issue #64 · jenv/jenv
November 25, 2014 - $> jenv help enable-plugin 10:09 fbiville@VID01701 Usage: jenv enable-plugin <pluginName> Activate a jEnv plugin
Author jenv
MacPorts
ports.macports.org › port › jenv › details
jenv | MacPorts
eval "$(jenv init -)" Then open a new shell and enable the export plugin: jenv enable-plugin export exec $SHELL -l · Optional: install some openjdk* ports if you don't have Java yet: sudo port install openjdk11 openjdk17 · Add the Java installations to jEnv: for d in /Library/Java/JavaVi...
Bring
developer.bring.com › blog › configuring-jenv-the-right-way
Configuring jenv the right way – Bring Developer
July 27, 2018 - I had to run jenv enable-plugin export because my jenv was not able to control my JAVA_HOME.
Adam Gamboa G
blog.adamgamboa.dev › using-jenv-to-switch-jkd-versions
Using jEnv to switch JDK versions
December 24, 2021 - $ jenv enable-plugin export $ jenv enable-plugin maven $ jenv enable-plugin gradle
GitHub
github.com › jenv › jenv › issues › 393 › linked_closing_reference
Issue in the output of "enable-plugin export" command · Issue #392 · jenv/jenv
March 10, 2023 - Hello, As you can see in the following screenshot, there is a small issue in the output produced by the jenv enable-plugin export command: Namely the "echo export plugin activated", which should be "export plugin activated" but on a new ...
Author jenv
Arunapi
arunapi.github.io › using-jenv
Using Jenv | My Blog
April 6, 2020 - Run jenv enable-plugin export to allow jenv to set your $JAVA_HOME, then create a new terminal session
GitHub
github.com › jenv › jenv › issues › 415
jenv.be documentation is outdated: missing "enable export plugin" step · Issue #415 · jenv/jenv
August 2, 2023 - Please consider update the Jenv Documentation site with this section: To make sure JAVA_HOME is set, make sure to enable the export plugin:
Author jenv
Baeldung
baeldung.com › home › java › managing multiple jdk installations with jenv
Managing Multiple JDK Installations With jEnv | Baeldung
May 2, 2025 - In order to ensure that jEnv works properly with Maven and Gradle, we have to enable their respective plugins. ... Running the Maven and Gradle commands now will use the jEnv-specific JDK versions instead of the system JDK. Note that, sometimes jEnv might not pick the correct JDK version, and we might end up with errors. For such cases, we might have to enable the jEnv export plugin:
Mehmet Baykar
mehmetbaykar.com › home › macos › how to set up jenv on macos
How to Set Up jEnv on macOS | Mehmet Baykar
December 27, 2025 - To allow jEnv to set JAVA_HOME automatically, enable the export plugin:
Readthedocs
metadatacenter.readthedocs.io › en › latest › install-developer › prereq-jenv
Jenv - CEDAR - Read the Docs
jenv global 17.0 · Enable the export plugin: jenv enable-plugin export · Open a new shell so your recent changes will be taken into account.