JS not being loaded


#1

How to solve this?
Removing of / prefix did not helped.
Plugin loaded without errors.
REST works.

<?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>

POM https://pastebin.com/HZZpTnichttps://pastebin.com/HZZpTnic


#2

Can you give more details on how it’s not being loaded? Is the js content not being included in the batch.js?

If so - is your path correct in the descriptor. Another issue might be that the js isn’t valid.


#3

proj\src\main\resources\js

01/13/2019 11:12 AM .
01/13/2019 11:12 AM …
01/13/2019 11:12 AM 3,889 com.x.jira.plugin-y.js
Yes, I see no com.x.jira.plugin-y.js or it’s content inside any page of Jira (F12 pressed, checked whole html).