1

我开始在一个 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]

我怎样才能解决这个问题 ?

谢谢你

4

1 回答 1

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>
于 2019-03-07T12:41:38.987 回答