Maven 更改插件不适用于 Jira 云
Maven changes plugin not working with Jira cloud
我正在尝试将 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的时候应该使用token,但是不知道怎么配置插件。
有什么帮助吗?
我一直在寻找如何在插件声明中配置令牌。实际上我所要做的就是使用字段 webPassword 来设置该令牌:
<webUser>user_email/webUser>
<webPassword>jira_token</webPassword>
并删除字段 jiraUser 和 jiraPassword。
我正在尝试将 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的时候应该使用token,但是不知道怎么配置插件。
有什么帮助吗?
我一直在寻找如何在插件声明中配置令牌。实际上我所要做的就是使用字段 webPassword 来设置该令牌:
<webUser>user_email/webUser>
<webPassword>jira_token</webPassword>
并删除字段 jiraUser 和 jiraPassword。