如果没有Atlassian Connect,则无法安装加载项

时间:2014-07-03 11:22:54

标签: jira jira-plugin ondemand

我正在尝试开发一个插件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"

1 个答案:

答案 0 :(得分:2)

正确的建议

以下建议在当时有效但不再适用。这些天你应该使用自己的个人Cloud Development Environment

过时的建议

您似乎错过了本地JIRA实例中的Atlassian Connect框架。您是否在Atlassian Connect Getting Started page推荐的本地运行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的-网络挂接-插件:2.0.0,com.atlassian.jwt:智威汤逊 - 插件:1.2.2,com.atlassian.upm:Atlassian的万能 - 插件管理器,插件:2.19 - D20150321T001323,com.atlassian .plugins:atlassian-connect-plugin:1.1.26 --jvmargs -Datlassian.upm.on.demand = true

执行此操作后,再次尝试安装插件。干杯!

P.S。 Atlassian Answers可能是提出这样问题的最佳地点。