我很难通过BitBucket插件通过HTTPS验证Maven JGitFlow,在Windows上运行git-bash。
错误消息是:“身份验证是必需的,但没有注册CredentialsProvider”。不过,我看到的建议似乎假设,作为开发人员,我可以访问JGit代码本身。
我没有遇到直接执行git命令()(我使用git-credential-winstore)的问题。另外,当我在pom.xml文件中显式地提供了我的用户名和密码时,它也能工作。
但是,我不希望我的密码被上传到我的BitBucket存储库中,我正在寻找一种JGitFlow插件与GIT本身一样的身份验证方法。
我做错什么了,我该怎么解决呢?
发布于 2016-08-08 14:19:43
以下JGitFlow Maven插件配置工作正常
<plugin>
<groupId>external.atlassian.jgitflow</groupId>
<artifactId>jgitflow-maven-plugin</artifactId>
<version>1.0-m5.1</version>
<configuration>
<username>${git.user}</username>
<password>${git.password}</password>
</configuration>
</plugin>使用用户名和密码作为从命令行调用它,例如使用-Dgit.user=<user>和-Dgit.password=<password>。
mvn -Dgit.user=user@bitbucket.com -Dgit.password=secret jgitflow:发布-启动
注意:插件应该使用能够从CredentialsProvider和/或使用与命令行中Git相同的机制的git凭据解析器获得凭证的Maven CredentialsProvider进行真正的更新。
https://stackoverflow.com/questions/36189877
复制相似问题