1 Star 0 Fork 1

不过六级不找女朋友/asdf-maven

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
list-all 511 Bytes
一键复制 编辑 原始数据 按行查看 历史
不过六级不找女朋友 提交于 2022-08-30 11:41 +08:00 . jdk-asdf
#!/usr/bin/env bash
source ${ASDF_DIR:-$HOME/.asdf}/plugins/maven/bin/env-self
get_maven_versions() {
# super clumsy regex to locate all Maven version tags on their history page
version=".*<td>(<b>)?([0-9]\.[0-9](\.[0-9])?(-.*)?)(</b>)?</td>.*"
# iterate all lines coming back from the Maven release history
echo "======================$MEVEN_VERSION"
for line in $(curl -s $MEVEN_VERSION); do
[[ $line =~ $version ]] && echo ${BASH_REMATCH[2]}
done
}
get_maven_versions | sort | tr "\n" " "
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hellomdk/asdf-maven.git
git@gitee.com:hellomdk/asdf-maven.git
hellomdk
asdf-maven
asdf-maven
master

搜索帮助