我开始在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]
我该如何解决?
谢谢
答案 0 :(得分:0)
将您的凭据添加到配置部分,以修复“未授权”错误
<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>