JS File is loading successfully in velocity template file when I run the plugin in development mode but when I run the jar file of this plugin in standalone Jira then JS file is not including in velocity template.
I included $webResourceManager.requireResource("${project.groupId}.${project.artifactId}:resources") in velocity template but it didn't work.
directory are as follows :
> inside resource folder
velocity template :
template/xyz.vm ---->around 4-5 vm files
resource(.js) file :
JSFile.js
resource(.js) file in atlassian-plugin.xml file :
<web-resource name="Resources" key="resources">
<resource name="JSFile.js" type="download" location="JSFile.js">
<param name="batch" value="false"/>
</resource>
<context>atl.general</context>
</web-resource>
Any help will be appreciated.
Thanks in advance.