【问题标题】:Maven changes plugin not working with Jira cloudMaven 更改插件不适用于 Jira 云
【发布时间】:2020-04-14 11:13:58
【问题描述】:

我正在尝试将 maven 更改插件与 jira cloud 一起使用,但徒劳无功。 我的 pom 看起来像这样:

.....
<build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-changes-plugin</artifactId>
                <version>2.11</version>
                ...
                </executions>
                <configuration>
                    <useJql>true</useJql>
                    <jiraUser>xxxx@gmail.com</jiraUser>
                    <jiraPassword>******</jiraPassword>
                    <webUser>xxxxx@gmail.com</webUser>
                    <webPassword>******</webPassword>
                    <onlyCurrentVersion>true</onlyCurrentVersion>
                    <smtpHost>smtp.gmail.com</smtpHost>
                    <smtpPort implementation="java.lang.Integer">465</smtpPort>
                    <username>xxxx@gmail.com</username>
                    <password>*****</password>
                    <toAddresses>
                        <toAddress implementation="java.lang.String">xxxxxx@yahoo.fr</toAddress>
                    </toAddresses>
                    <mailSender>
                        <name>Release Notification</name>
                        <email>xxxx@gmail.com</email>
                    </mailSender>
                    <issueManagementSystems>
                        <issueManagementSystem>JIRA</issueManagementSystem>
                    </issueManagementSystems>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <issueManagement>
        <system>JIRA</system>
        <url>https://xxxxx.atlassian.net/browse/PROJ</url>
    </issueManagement>
....

我收到 403 错误。

我认为在使用jira cloud时,我应该使用令牌,但我不知道如何使用它来配置插件。

有什么帮助吗?

【问题讨论】:

  • 您对令牌进行了哪些尝试?如果您展示您尝试过的内容以及遇到的错误,其他人会更容易帮助您。
  • 感谢@billoverton,我找到了解决方案。

标签: jira maven-changes-plugin


【解决方案1】:

我正在寻找如何在插件声明中配置令牌。实际上我应该做的就是使用字段 webPassword 来设置该令牌:

<webUser>user_email/webUser>
<webPassword>jira_token</webPassword>

并删除 jiraUser 和 jiraPassword 字段。

【讨论】:

    猜你喜欢
    • 2018-04-07
    • 1970-01-01
    • 2018-11-25
    • 1970-01-01
    • 1970-01-01
    • 2020-06-19
    • 2016-04-09
    • 2021-07-17
    • 2016-05-26
    相关资源
    最近更新 更多