【问题标题】:Plugin for JIRA throws errors in 7.4.1 but runs well in 7.4.2 [closed]JIRA 插件在 7.4.1 中引发错误,但在 7.4.2 中运行良好 [关闭]
【发布时间】:2017-08-16 07:19:42
【问题描述】:

我想将我的插件移植到 JIRA 以使其与 JIRA 7.4.x 兼容 当我在 pom.xml 中将 JIRA 的版本更改为 7.4.1 时,出现以下编译错误:

package com.atlassian.crowd.embedded.api does not exist
package org.apache.velocity does not exist
package org.apache.velocity.app does not exist
package org.apache.commons.codec.binary does not exist
class file for com.atlassian.crowd.embedded.api.Group not found 
class file for com.atlassian.plugin.web.Condition not found

当我将版本设置为 7.4.2 时,我可以编译插件,并且在 JIRA 中也可以毫无问题地运行它。 Here 是我的 pom.xml 的属性和依赖项的粘贴。 我们可以做些什么来使插件也与 JIRA 7.4.1 兼容?

谢谢:)

【问题讨论】:

    标签: maven dependencies jira jira-plugin


    【解决方案1】:

    我前段时间开始使用 atlassian 插件和开发,我认为这些包的某些部分是在 7.4.2 中添加的,因此它们在 7.4.1 中不可用(这是我的观点)。我只能给你我的意见,因为我自己也遇到了 atlassian sdk 的问题,并且由于官方 atlassian 的文档不是很好,所以不得不单独解决。

    我发现thisthis有一篇和你有类似问题的文章,你可以看看,因为它被标记为“已解决”,希望对你有所帮助。

    【讨论】:

      【解决方案2】:

      我必须在我的 pom.xml 的 maven-jira-plugin 中添加 <import-package> 指令来解决这个问题。 文档:https://developer.atlassian.com/docs/advanced-topics/configuration-of-instructions-in-atlassian-plugins

      另外this answer 解决了我进一步的类路径/依赖错误。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-12-11
        相关资源
        最近更新 更多