halcyon / asdf-maven Goto Github PK
View Code? Open in Web Editor NEWThis project forked from proemion/asdf-maven
Maven plugin for the asdf version manager.
License: MIT License
This project forked from proemion/asdf-maven
Maven plugin for the asdf version manager.
License: MIT License
Hi,
Would you be up for (collaborating on) adding support for this plugin in Renovate?
Here's an example of how this is done (for other plugins):
So users of this plugin can benefit from Renovate (automated pull requests for version upgrades), i.e:
I'm encountering the same issue described in JAVA_HOME not found from the skotchpine/asdf-maven
repo. It looks like halcyon/asdf-maven
was forked from the skotchpine/asdf-maven
repo in order to fix this exact issue, which it did in Fix missing JAVA_HOME. Unfortunately, another commit was made in Simplify setting JAVA_HOME which reintroduces the bug and prevents JAVA_HOME
from being set correctly when the .tool-versions
file has multiple versions for a single tool:
$ mvn -version
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
If the .tool-versions
file contains multiple versions for a single tool, for example:
java adopt-openjdk-11.0.7+10 adopt-openjdk-8u252-b09
maven 3.6.3
Then asdf where java
used in asdf-maven/bin/exec-env returns the following error:
$ asdf where java
Version not installed
This prevents JAVA_HOME
from being set correctly and causes mvn
to return the following error:
$ mvn -version
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
If the .tool-versions
file contains a single version for a tool, for example:
java adopt-openjdk-11.0.7+10
maven 3.6.3
Then asdf where java
works as expected, and so does mvn -version
:
$ asdf where java
/opt/asdf/installs/java/adopt-openjdk-11.0.7+10
$ mvn -version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /opt/asdf/installs/maven/3.6.3
Java version: 11.0.7, vendor: AdoptOpenJDK, runtime: /opt/asdf/installs/java/adopt-openjdk-11.0.7+10
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "4.19.76-linuxkit", arch: "amd64", family: "unix"
or
Recently switched from homebrew to asdf. I was previously using https://github.com/mthmulders/homebrew-maven-snapshot to switch between latest and snapshot. Would you be willing to accept a contribution adding this functionality to asdf-maven?
> asdf latest maven # expecting latest stable version (`3.8.6` at time of writing)
4.0.0-alpha-2
> asdf latest maven 3 # expecting a version starting with "3"
4.0.0-alpha-2
This is also impacting asdf install maven latest
.
When I try running asdf list all maven
it results in
/opt/homebrew/Cellar/asdf/0.9.0/libexec/lib/commands/command-list-all.bash: /Users/username/.asdf/plugins/maven/bin/list-all: /bin/env: Defekter Interpreter: No such file or directory
At least on MacOS env
seems to be located in /usr/bin/env
now. It also looks like the same script for the Java plugin already uses that path. A quick test changing it was also successful.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.