jenv: jenv Maven plugin does not pick up the right version
I’m using Jenv 0.5.0 and the jenv Maven plugin is already enabled.
If I switch versions globally or locally, Maven does not pick up the change.
jenv doctor
reports no issues.
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 22 (9 by maintainers)
Commits related to this issue
- jenv doctor detect missconfigured plugin ( #232 ) — committed to jenv/jenv by gcuisinier 5 years ago
- jenv doctor detect missconfigured plugin ( #232 ) — committed to jenv/jenv by gcuisinier 5 years ago
- Improve Homebrew integration Fix #260 and #232 — committed to jenv/jenv by gcuisinier 4 years ago
- Improve Homebrew integration Fix #260 and #232 — committed to jenv/jenv by gcuisinier 4 years ago
- Improve Homebrew integration Fix #260 and #232 — committed to jenv/jenv by gcuisinier 4 years ago
- Improve Homebrew integration Fix #260 and #232 — committed to jenv/jenv by gcuisinier 4 years ago
The bug still appears, only
jenv exec mvn ...
seems to work:Disabling and re-enabling the Maven plugin works like a charm(ing workaround)! Thanks @bric3!
I found the issue, the links of the plugins are linking to 0.4.4, the previous version of jenv installed via homebrew.
Using
jenv rehash
don’t work. You have to explicitly disable and enable the plugin again. But it will break again on the next jenv version updated by homebrew.Instead I believe the plugin activation should link with the
opt
symlink set by homebrew, e.g./usr/local/opt/jenv/libexec/available-plugins/maven
.