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

jenv enable-plugin maven

Answer from tenfourty on Stack Overflow
🌐
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
Discussions

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
🌐 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
🌐 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
🌐 github.com
17
November 25, 2014
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
🌐 github.com
7
March 10, 2023
🌐
Medium
medium.com › @viqueen › did-you-know-i-use-jenv-for-managing-my-java-ff41ea26ad04
did you know ? I use jEnv for managing my Java | by Hasnae R. | Medium
May 26, 2020 - I use maven as my main build tool, but we also have some components built with gradle; while other scripts also expect JAVA_HOME to be exported · jenv enable-plugin maven jenv enable-plugin gradle jenv enable-plugin export
🌐
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
🌐
Medium
medium.com › javarevisited › manage-java-versions-with-jenv-6b8228552661
Manage Java Versions with jEnv. Master your Java Environment | by Jayson GCS | Javarevisited | Medium
September 11, 2023 - # Enable export plugin jenv enable-plugin export # Restart ZSH session source ~/.zshrc # Alternative way to restart exec $SHELL -l
🌐
Bekk Christmas
bekk.christmas › post › 2022 › 16 › java-versions-are-easier-with-jenv
Java versions are easier with jEnv | Bekk Christmas
November 7, 2024 - export PATH=”$HOME/.jenv/bin:$PATH” eval “$(jenv init -)” · To activate jenv, either restart your terminal or source your config file. ... No tool is complete without a set of addons, is it? jenv comes with a set of addons, and some ...
Find elsewhere
🌐
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.
🌐
Thejavaguy
thejavaguy.org › posts › 002-use-jenv-to-manage-jdks
Use jEnv to manage JDKs - TheJavaGuy Software & Blog
March 17, 2022 - Even when you set up global JDK ... code in GNU/Linux or MacOS then you must set JAVA_HOME. Luckily with jEnv it is super easy - just run jenv enable-plugin export and restart your terminal....
🌐
Rob Allen
akrabat.com › using-jenv-to-select-java-version-on-macos
Using jenv to select Java version on macOS – Rob Allen
December 2, 2020 - In between, to jenv switch reflect in $JAVA_HOME jenv enable-plugin export