JIRA插件开发:JS未加载

时间:2019-01-11 18:58:24

标签: javascript java jira jira-plugin

JIRA插件开发:JS未加载

如何解决这个问题?

删除/前缀没有帮助。

插件已正确加载。

REST有效。

POM https://pastebin.com/HZZpTnic

<?xml version="1.0" encoding="UTF-8"?>
<atlassian-plugin key="${atlassian.plugin.key}" name="${project.name}" plugins-version="2">
   <plugin-info>
      <description>${project.description}</description>
      <version>${project.version}</version>
      <vendor name="${project.organization.name}" url="${project.organization.url}" />
      <param name="plugin-icon">images/pluginIcon.png</param>
      <param name="plugin-logo">images/pluginLogo.png</param>
   </plugin-info>
   <resource type="i18n" name="i18n" location="com.x.jira.plugin-y" />
   <web-resource key="com.x.jira.plugin-y-resources" name="com.x.jira.plugin-y Web Resources">
      <dependency>com.atlassian.auiplugin:ajs</dependency>
      <resource type="download" name="bootstrap.table.css" location="/css/vendor/bootstrap.table.min.css" />
      <resource type="download" name="com.x.jira.plugin-y.css" location="/css/com.x.jira.plugin-y.css" />
      <resource type="download" name="jquery.js" location="/js/vendor/jquery-3.3.1.min.js" />
      <resource type="download" name="bootstrap-table.js" location="/js/vendor/bootstrap-table-1.13.1.min.js" />
      <resource type="download" name="com.x.jira.plugin-y.js" location="/js/com.x.jira.plugin-y.js" />
      <resource type="download" name="images/" location="/images" />
      <context>atl.general</context>
   </web-resource>
   <rest name="x Object" i18n-name-key="x-object.name" key="x-object" path="/y" version="1.0">
      <description key="x-object.description">The x Object REST Plugin</description>
   </rest>
</atlassian-plugin>

0 个答案:

没有答案