1

我正在尝试开发一个插件 voor JIRA OnDemand。我已经安装了 Atlassian SDK 并且能够创建一些问题和项目等。

当我尝试上传插件描述符(“atlassian-connect.json”)时,JIRA 告诉我无法安装插件。似乎没有正确安装 Atlassion Connect。

日志输出如下。

有小费吗?

com.atlassian.upm.spi.PluginInstallException: This add-on cannot be installed without the Atlassian Connect framework. See our <a href="https://confluence.atlassian.com/x/IYHLEg" target="_blank">documentation</a> for more information.
    at com.atlassian.upm.core.install.DefaultPluginInstallationService.execute(DefaultPluginInstallationService.java:118)
    at com.atlassian.upm.core.install.DefaultPluginInstallationService.install(DefaultPluginInstallationService.java:84)
    at com.atlassian.upm.install.UpmPluginInstallationService.install(UpmPluginInstallationService.java:93)
    at com.atlassian.upm.core.rest.resources.install.InstallTask.installFromFile(InstallTask.java:123)
    at com.atlassian.upm.core.rest.resources.install.InstallFromUriTask.executeTask(InstallFromUriTask.java:87)
    at com.atlassian.upm.core.rest.resources.install.InstallTask.call(InstallTask.java:58)
    at com.atlassian.upm.core.rest.resources.install.InstallTask.call(InstallTask.java:33)
    at com.atlassian.upm.core.rest.async.AsynchronousTaskManager$1.call(AsynchronousTaskManager.java:77)
    at com.atlassian.upm.core.rest.async.AsynchronousTaskManager$1.call(AsynchronousTaskManager.java:72)
    at com.atlassian.sal.core.executor.ThreadLocalDelegateCallable.call(ThreadLocalDelegateCallable.java:42)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)

我的描述符:

{
    "authentication": {
        "type": "jwt"
    },
    "baseURL": "https://localhost/",
    "key": "eu.take-a-byte.synctool",
    "apiVersion": "1",
    "version": "1.0",
    "description": "Tool to syncronize JIRA activity with Toggl",
    "name": "JIRA/Toggl Sync Tool", 
    "modules": 
    {
        "webPanels": [
            {
                "url": "/ui",
                "weight": 100,
                "location": "atl.jira.view.issue.right.context",
                "key": "toggl-component",
                "name": {
                    "value": "Toggl"
                }
            }
        ],
        "webhooks": [{
                "event": "jira:issue_created",
                "url": "/issue-created"
            },
            {
                "event": "jira:issue_updated",
                "url": "/issue-updated"
            }
        ]
    },
    "vendor": {
        "name": "Take A Byte",
        "url": "http://www.take-a-byte.eu"
    },
    "lifecycle": {
        "installed": "/installed",
        "uninstalled": "/uninstalled",
        "enabled": "/enabled",
        "disabled": "/disabled"
    }
}

Atlassian SDK 版本:

ATLAS Version:    5.0.3
ATLAS Home:       C:\Users\Rick_2\atlassian-plugin-sdk
ATLAS Scripts:    C:\Users\Rick_2\atlassian-plugin-sdk\bin
ATLAS Maven Home: C:\Users\Rick_2\atlassian-plugin-sdk\apache-maven-3.2.1
--------
Executing: "C:\Users\Rick_2\atlassian-plugin-sdk\apache-maven-3.2.1\bin\mvn.bat" --version -gs C:\Users\Rick_2\atlassian-plugin-sdk\apache-maven-3.2.1/conf/settings.xml
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T18:37:52+01:00)
Maven home: C:\Users\Rick_2\atlassian-plugin-sdk\apache-maven-3.2.1\bin\..
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_51\jre
Default locale: nl_NL, platform encoding: Cp1252
OS name: "windows 8", version: "6.2", arch: "amd64", family: "windows"
4

1 回答 1

2

正确的建议

以下建议当时有效,但不再有效。这些天来,您应该使用自己的个人云开发环境

过时的建议

您似乎缺少本地 JIRA 实例中的 Atlassian Connect 框架。您是否按照Atlassian Connect 入门页面的建议在本地运行 JIRA ?

atlas-run-standalone --product jira --version 6.4-OD-16-006 --bundled-plugins com.atlassian.bundles:json-schema-validator-atlassian-bundle:1.0.4,com.atlassian.webhooks: atlassian-webhooks-plugin:2.0.0,com.atlassian.jwt:jwt-plugin:1.2.2,com.atlassian.upm:atlassian-universal-plugin-manager-plugin:2.19-D20150321T001323,com.atlassian.plugins: atlassian-connect-plugin:1.1.26 --jvmargs -Datlassian.upm.on.demand=true

完成此操作后,请尝试再次安装您的插件。干杯!

PS Atlassian Answers可能是提出此类问题的最佳场所。

于 2015-04-06T21:17:32.330 回答