我开始在一个java项目中使用jgitflow,我想实现如下所示:
<plugin>
<groupId>external.atlassian.jgitflow</groupId>
<artifactId>jgitflow-maven-plugin</artifactId>
<version>1.0-m5.1</version>
<configuration>
<noDeploy>true</noDeploy>
</configuration>
<executions>
<execution>
<id>execution1</id>
<goals>
<goal>hotfix-start</goal>
<goal>release-start</goal>
<goal>feature-start</goal>
<goal>feature-finish</goal>
</goals>
<configuration>
<allowSnapshots>true</allowSnapshots>
</configuration>
</execution>
<execution>
<id>execution2</id>
<goals>
<goal>hotfix-finish</goal>
<goal>release-finish</goal>
</goals>
<configuration>
<allowSnapshots>false</allowSnapshots>
</configuration>
</execution>
</executions>
</plugin>当我启动一个新的修补程序时,我应该能够创建它,但我得到了这个错误:
[ERROR] Failed to execute goal external.atlassian.jgitflow:jgitflow-maven-plugin:1.0-m5.1:hotfix-start (default-cli) on project jgitflow-test: Error starting hotfix: Error starting hotfix: org.eclipse.jgit.api.errors.TransportException: https://gitlab.audaxis.com/compiere-client/client-xxx/jgitflow-test.git: not authorized -> [Help 1]我该如何解决这个问题呢?
谢谢你
发布于 2019-03-07 20:41:39
将您的凭证添加到配置节,以修复“未授权”错误。
<configuration>
<useReleaseProfile>true</useReleaseProfile>
<noDeploy>false</noDeploy>
<pushReleases>false</pushReleases>
<pullDevelop>true</pullDevelop>
<pullMaster>true</pullMaster>
<scmCommentPrefix>RELEASE:</scmCommentPrefix>
<allowUntracked>true</allowUntracked>
<username>${git.user}</username>
<password>${git.password}</password>
</configuration>https://stackoverflow.com/questions/53881918
复制相似问题