首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >个性化jgitflow maven插件

个性化jgitflow maven插件
EN

Stack Overflow用户
提问于 2018-12-21 17:07:10
回答 1查看 1K关注 0票数 1

我开始在一个java项目中使用jgitflow,我想实现如下所示:

代码语言:javascript
复制
<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>

当我启动一个新的修补程序时,我应该能够创建它,但我得到了这个错误:

代码语言:javascript
复制
[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]

我该如何解决这个问题呢?

谢谢你

EN

回答 1

Stack Overflow用户

发布于 2019-03-07 20:41:39

将您的凭证添加到配置节,以修复“未授权”错误。

代码语言:javascript
复制
<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>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53881918

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档