JIRA的插件在7.4.1中引发错误但在7.4.2中运行良好[关闭]

问题描述 投票:1回答:2

我想为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
2个回答
0
投票

我刚开始使用atlassian插件和开发,我认为这些软件包的某些部分是在7.4.2中添加的,因此它们在7.4.1中不可用(这是我的看法)。我只能给你我的意见,因为我自己遇到了atlassian sdk的问题而且必须单独解决它们,因为官方atlassian的文档并不那么好。

我发现this文章和this与你的问题类似,你可以检查它,因为它被标记为“已解决”,希望它会帮助你。


0
投票

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

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

© www.soinside.com 2019 - 2024. All rights reserved.