linux - git push 和 git clone 有效但 mvn release :branch 无效

标签 linux git ssh

我正在尝试构建我的 Linux VM 以与 Git 交互。我生成了私钥/公钥 SSH key 并将公钥放在 Git 中。我可以 git clonegit push 不需要密码。所以我认为一切都设置正确。

但是当我尝试运行 mvn release:branch 时,它要求输入用户名和密码。

是否要求我们仅针对 mvn 命令进行不同的设置?

最佳答案

mvn release plugin在进行实际发布到 Nexus。

如果该连接使用 https URL,则需要凭据。

This article显示连接可能已明确指定:

Apparently, the release:branch goal doesn't make any release.properties file or other files that the release:perform goal expects.

所以试试 mvn release:prepare

关于linux - git push 和 git clone 有效但 mvn release :branch 无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55230715/

相关文章:

linux - 精确地使用两个参数搜索 grep

linux - 在 Linux 7.2 上自签名的证书验证失败

git - 解决我们删除的 git rebase

git - 为什么 git 关心我文件中的尾随空格?

git - 忽略 bash 反引号执行而不转义 git commit 中的 ` 字符

linux - 在 shell 脚本中的捕获组中转义引号

linux - 无法在 shell 脚本中运行 if 条件

linux - Gitlab-ci alpine image : Host key verification failed

ssh - 尝试在 Centos (Rhel 7.5) 上运行 google-chrome 时无法打开 X 显示

r - 通过 R 使用 Linux Azure DSVM 进行 SSH 公钥身份验证