Not abe enable SDK plugin

Hi Team,
We are developing SDK Plugin, it was working fine until we pasted our java code. Unable to start plugin.
Here is the error shown in logs:
2019-12-26 16:22:18,162 Caesium-1-2 INFO [c.a.jira.startup.CacheWarmerLauncher] Warming up 3 caches.
2019-12-26 16:22:18,232 ForkJoinPool.commonPool-worker-3 INFO [c.a.jira.i18n.I18nWarmer] Init i18n cache
2019-12-26 16:22:18,239 ForkJoinPool.commonPool-worker-1 INFO [c.a.j.cache.soy.SoyCacheWarmer] Warming 41 soy modules
2019-12-26 16:22:32,201 Caesium-1-3 INFO [c.a.j.p.h.service.ping.RefreshConnectionStatusJobHandler] Running RefreshConnectionStatusJobHandler…
2019-12-26 16:22:32,229 Caesium-1-3 DEBUG [c.a.activeobjects.osgi.ActiveObjectsServiceFactory] getService bundle [com.atlassian.plugins.base-hipchat-integration-plugin-api]
2019-12-26 16:22:35,041 ForkJoinPool.commonPool-worker-1 INFO [c.a.j.cache.soy.SoyCacheWarmer] Warmed 34 soy module(s) in 16810 ms, 7 module(s) were not present or disabled, 0 failed.
2019-12-26 16:22:44,773 ForkJoinPool.commonPool-worker-3 INFO [c.a.jira.i18n.I18nWarmer] Initialised i18n cache in 26541
2019-12-26 16:22:44,774 Caesium-1-2 INFO [c.a.jira.startup.CacheWarmerLauncher] Warmed cache(s) in 26593 ms.
2019-12-26 16:22:45,171 Caesium-1-2 INFO [c.a.j.p.h.service.connect.InstallGlancesJobHandler] Running InstallGlancesJobHandler…
2019-12-26 16:22:45,172 Caesium-1-2 INFO [c.a.j.p.h.service.connect.InstallGlancesJobHandler] There is no link to HipChat, no need to install glances.
2019-12-26 16:23:16,724 Caesium-1-1 INFO [c.a.jira.upgrade.UpgradeScheduler] Running scheduled upgrades
2019-12-26 16:23:16,751 Caesium-1-1 INFO [c.a.jira.upgrade.LoggingUpgradeService] run upgrades has started
2019-12-26 16:23:16,779 Caesium-1-1 INFO [c.a.j.upgrade.util.BuildNumberDao] Setting current build number to 713000
2019-12-26 16:23:16,782 Caesium-1-1 DEBUG [c.a.activeobjects.osgi.ActiveObjectsServiceFactory] getService bundle [com.atlassian.jira.plugins.webhooks.jira-webhooks-plugin]
2019-12-26 16:23:16,789 Caesium-1-1 INFO [c.a.jira.upgrade.UpgradeIndexManager] There is no reindex requests of type [IMMEDIATE, DELAYED] so none will be run
2019-12-26 16:23:16,789 Caesium-1-1 INFO [c.a.j.upgrade.util.BuildNumberDao] Setting current version to 7.13.0
2019-12-26 16:23:16,793 Caesium-1-1 INFO [c.a.j.upgrade.util.BuildNumberDao] Setting downgrade version to 7.1.2
2019-12-26 16:23:16,808 Caesium-1-1 INFO [c.a.jira.upgrade.LoggingUpgradeService] run upgrades has finished successfully, and took 57 milliseconds to process.
2019-12-26 16:23:16,808 Caesium-1-1 INFO [c.a.jira.upgrade.UpgradeScheduler] JIRA upgrades completed successfully
2019-12-26 16:23:16,810 Caesium-1-1 INFO [c.a.jira.upgrade.UpgradeScheduler] Plugins upgrades completed successfully
2019-12-26 16:23:16,811 Caesium-1-1 INFO [c.a.jira.upgrade.UpgradeIndexManager] Reindexing is not allowed after this upgrade and there is no immediate reindex requests
2019-12-26 16:23:18,946 Caesium-1-3 DEBUG [c.a.activeobjects.osgi.ActiveObjectsServiceFactory] getService bundle [com.atlassian.troubleshooting.plugin-jira]
2019-12-26 16:24:22,815 http-nio-2990-exec-5 DEBUG anonymous 984x3x1 1bywnvg 0:0:0:0:0:0:0:1 /login.jsp [c.a.activeobjects.osgi.ActiveObjectsServiceFactory] getService bundle [com.atlassian.whisper.atlassian-whisper-plugin]
2019-12-26 16:27:21,786 StreamsCompletionService::thread-1 DEBUG admin 987x2950x3 v5nqq2 0:0:0:0:0:0:0:1 /plugins/servlet/streams [c.a.activeobjects.osgi.ActiveObjectsServiceFactory] getService bundle [com.atlassian.streams.thirdparty-plugin]
2019-12-26 16:27:22,498 http-nio-2990-exec-12 WARN admin 987x2950x3 v5nqq2 0:0:0:0:0:0:0:1 /plugins/servlet/streams [o.a.a.u.stax.dialect.StAXDialectDetector] Unable to determine dialect of the StAX implementation at bundle://160.0:1/
2019-12-26 16:27:57,139 http-nio-2990-exec-9 WARN admin 987x3841x3 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/installed-marketplace [c.a.upm.pac.PacClientImpl] The request to check for add-on updates may take longer than expected because 190 user-installed add-ons are installed. This may impact the performance of loading the Manage Add-ons page.
2019-12-26 16:28:13,229 http-nio-2990-exec-11 ERROR admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.p.osgi.factory.OsgiPluginInstalledHelper] Cannot determine required plugins, cannot resolve bundle ‘com.jira.plug.plug-tests’
2019-12-26 16:28:13,231 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 1000 seconds remaining
2019-12-26 16:28:14,232 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 998 seconds remaining
2019-12-26 16:28:15,233 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 997 seconds remaining
2019-12-26 16:28:16,233 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 996 seconds remaining
2019-12-26 16:28:17,234 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 995 seconds remaining
2019-12-26 16:28:18,235 http-nio-2990-exec-11 WARN admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.manager.PluginEnabler] Plugin ‘com.jira.plug.plug-tests’ did not enable within 5 seconds.The plugin should not take this long to enable. Will only attempt to load plugin for another ‘25’ seconds.
2019-12-26 16:28:18,236 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 994 seconds remaining
2019-12-26 16:28:19,237 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 993 seconds remaining
2019-12-26 16:28:20,238 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 992 seconds remaining
2019-12-26 16:28:21,238 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 991 seconds remaining
2019-12-26 16:28:22,239 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 990 seconds remaining
2019-12-26 16:28:23,240 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 989 seconds remaining
2019-12-26 16:28:24,241 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 988 seconds remaining
2019-12-26 16:28:25,241 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 987 seconds remaining
2019-12-26 16:28:26,242 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 986 seconds remaining
2019-12-26 16:28:27,243 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 985 seconds remaining
2019-12-26 16:28:28,244 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 984 seconds remaining
2019-12-26 16:28:29,245 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 983 seconds remaining
2019-12-26 16:28:30,246 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 982 seconds remaining
2019-12-26 16:28:31,247 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 981 seconds remaining
2019-12-26 16:28:32,248 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 980 seconds remaining
2019-12-26 16:28:33,248 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 979 seconds remaining
2019-12-26 16:28:34,249 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 978 seconds remaining
2019-12-26 16:28:35,249 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 977 seconds remaining
2019-12-26 16:28:36,250 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 976 seconds remaining
2019-12-26 16:28:37,251 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 975 seconds remaining
2019-12-26 16:28:38,251 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 974 seconds remaining
2019-12-26 16:28:39,252 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 973 seconds remaining
2019-12-26 16:28:40,253 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 972 seconds remaining
2019-12-26 16:28:41,253 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 971 seconds remaining
2019-12-26 16:28:42,254 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.jira.plug.plug-tests], 970 seconds remaining
2019-12-26 16:28:43,284 http-nio-2990-exec-11 INFO admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.manager.DefaultPluginManager] Disabling com.jira.plug.plug-tests
2019-12-26 16:28:43,311 http-nio-2990-exec-11 DEBUG admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.activeobjects.osgi.ActiveObjectsServiceFactory] onPluginDisabledEvent removing delegate for [com.jira.plug.plug-tests]
2019-12-26 16:28:43,325 http-nio-2990-exec-11 ERROR admin 988x3865x1 v5nqq2 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.jira.plug.plug-tests-key [c.a.plugin.manager.PluginEnabler] Unable to start the following plugins due to timeout while waiting for plugin to enable: com.jira.plug.plug-tests

Please help us resolve these issues.

@Vinothk We cannot really help because the provided information is very limited. The logfile shows that your plugin is not being enabled. I cannot see any error. My assumption would be that you used @ComponentImport for internal classes.

If you can’t share code then try to build a minimum working example which you’re allowed to share here.

Hi Dennis,
Here is the code:

package com.jira.bad;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.
;
import java.io.File;
import com.atlassian.plugin.spring.scanner.annotation.imports.ComponentImport;
import com.atlassian.templaterenderer.TemplateRenderer;
import com.atlassian.plugin.spring.scanner.annotation.component.Scanned;
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;

@Scanned
public class UploadServlet extends HttpServlet{
private static final Logger log = LoggerFactory.getLogger(UploadServlet.class);
@ComponentImport
private final TemplateRenderer templateRenderer;
static ReadPropertyFile rp = new ReadPropertyFile();
public UploadServlet(TemplateRenderer templateRenderer)
{
this.templateRenderer = templateRenderer;
}
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
{
try {
resp.setContentType(“text/html;charset=utf-8”);
templateRenderer.render("/templates/success.vm", resp.getWriter());
}catch(Exception e) {
System.out.println(“Exception”);
}
}
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
rp.readProperties();
if(ServletFileUpload.isMultipartContent(request)){
try {
//final String UPLOAD_DIRECTORY = “”;
final String UPLOAD_DIRECTORY = rp.DownloadsFilePath;
List multiparts = new ServletFileUpload(new DiskFileItemFactory()).parseRequest(request);
ArrayList result = new ArrayList();
ArrayList updated = new ArrayList();
ArrayList nonUpdated = new ArrayList();
for(FileItem item : multiparts){
if(!item.isFormField()){
String name = new File(item.getName()).getName();
item.write( new File(UPLOAD_DIRECTORY + File.separator + name));
System.out.println(name);
result = ExcelUpdateIssues.mainto(name);
updated = result.get(0);
nonUpdated = result.get(1);
}
}
//File uploaded successfully
request.setAttribute(“successmessage”, “File Uploaded Successfully”);
request.setAttribute(“testmessage”, “The set of issues updated”);
request.setAttribute(“updated”, updated);
request.setAttribute(“nonupdatemssg”, “The set of issues not updated”);
request.setAttribute(“nonUpdated”, nonUpdated);
} catch (Exception ex) {
request.setAttribute(“errormessage”, "File Upload Failed due to " + ex);
}

    }else{
        request.setAttribute("message",
                             "Sorry this Servlet only handles Excel file upload request");
    }
    response.setContentType("text/html;charset=utf-8");
	templateRenderer.render("/templates/success.vm", response.getWriter());
}

}

@Vinothk The provided code seems to be good. I cannot see any error on first sight. Please check:

  • Can you get the plugin loaded without using the TemplateRenderer. In this case, you’ll have a problem with your dependencies and likely forgot to import TemplateRenderer or did not use provided scope.

A complete non working example could help. The problem could also be in the atlassian-plugin.xml or pom.xml, etc.

Hi Dennis,
We tried to load plugin without TemplateRenderer but to its not working.
This is my atlassian-plugin.xml file:

<?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>  
  <!-- add our i18n resource -->  
  <resource type="i18n" name="i18n" location="sad"/>  
  <!-- add our web resources -->  
  <web-resource key="sad-resources" name="sad Web Resources"> 
    <dependency>com.atlassian.auiplugin:ajs</dependency>  
    <resource type="download" name="sad.css" location="/css/sad.css"/>  
    <resource type="download" name="sad.js" location="/js/sad.js"/>  
    <resource type="download" name="images/" location="/images"/>  
    <context>sad</context> 
  </web-resource>  
  <servlet name="Upload Servlet" i18n-name-key="upload-servlet.name" key="upload-servlet" class="com.jira.sad.UploadServlet"> 
    <description key="upload-servlet.description">The Upload Servlet Plugin</description>  
    <url-pattern>/uploadservlet</url-pattern> 
  </servlet>
</atlassian-plugin>

Pom.xml:

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>bad</groupId>
    <artifactId>bad</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <organization>
        <name>Example Company</name>
        <url>http://www.example.com/</url>
    </organization>
    <name>bad</name>
    <description>This is the bad:bad plugin for Atlassian JIRA.</description>
    <packaging>atlassian-plugin</packaging>
    <dependencies>
    	<!-- https://mvnrepository.com/artifact/com.atlassian.templaterenderer/atlassian-template-renderer-api -->
		<dependency>
		    <groupId>com.atlassian.templaterenderer</groupId>
		    <artifactId>atlassian-template-renderer-api</artifactId>
		    <version>4.0.0-71ca514</version>
		    <scope>provided</scope>
		</dependency>

    	<!-- https://mvnrepository.com/artifact/com.atlassian.sal/sal-api -->
		<dependency>
		    <groupId>com.atlassian.sal</groupId>
		    <artifactId>sal-api</artifactId>
		    <version>4.0.0-490c946</version>
		    <scope>provided</scope>
		</dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-api</artifactId>
            <version>${jira.version}</version>
            <scope>provided</scope>
        </dependency>
        <!-- Add dependency on jira-core if you want access to JIRA implementation classes as well as the sanctioned API. -->
        <!-- This is not normally recommended, but may be required eg when migrating a plugin originally developed against JIRA 4.x -->
        <!--
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-core</artifactId>
            <version>${jira.version}</version>
            <scope>provided</scope>
        </dependency>
        -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.10</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugin</groupId>
            <artifactId>atlassian-spring-scanner-annotation</artifactId>
            <version>${atlassian.spring.scanner.version}</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugin</groupId>
            <artifactId>atlassian-spring-scanner-runtime</artifactId>
            <version>${atlassian.spring.scanner.version}</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>javax.inject</groupId>
            <artifactId>javax.inject</artifactId>
            <version>1</version>
            <scope>provided</scope>
        </dependency>
        <!-- WIRED TEST RUNNER DEPENDENCIES -->
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-osgi-testrunner</artifactId>
            <version>${plugin.testrunner.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>javax.ws.rs</groupId>
            <artifactId>jsr311-api</artifactId>
            <version>1.1.1</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.2.2-atlassian-1</version>
        </dependency>
        <!-- Uncomment to use TestKit in your project. Details at https://bitbucket.org/atlassian/jira-testkit -->
        <!-- You can read more about TestKit at https://developer.atlassian.com/display/JIRADEV/Plugin+Tutorial+-+Smarter+integration+testing+with+TestKit -->
        <!--
        <dependency>
            <groupId>com.atlassian.jira.tests</groupId>
            <artifactId>jira-testkit-client</artifactId>
            <version>${testkit.version}</version>
            <scope>test</scope>
        </dependency>
        -->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.4</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.6.6</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
            <version>4.1.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
            <version>1.8.5</version>
            <scope>test</scope>
        </dependency>
                 <dependency>
		     <groupId>commons-fileupload</groupId>
		     <artifactId>commons-fileupload</artifactId>
		     <version>1.2.2</version>
		</dependency>
		<dependency>
		    <groupId>javax.json</groupId>
		    <artifactId>javax.json-api</artifactId>
		    <version>1.0</version>
		</dependency>
		<dependency>
	        <groupId>commons-io</groupId>
	        <artifactId>commons-io</artifactId>
	        <version>2.4</version>
	    </dependency>
	    <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
		<dependency>
		    <groupId>com.fasterxml.jackson.core</groupId>
		    <artifactId>jackson-databind</artifactId>
		    <version>2.9.8</version>
		</dependency>
		<dependency>
		    <groupId>com.mashape.unirest</groupId>
		    <artifactId>unirest-java</artifactId>
		    <version>1.4.9</version>
		</dependency>
		<!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
		<dependency>
		    <groupId>org.apache.poi</groupId>
		    <artifactId>poi-ooxml</artifactId>
		    <version>3.17</version>
		</dependency>
		<dependency>
		    <groupId>com.googlecode.json-simple</groupId>
		    <artifactId>json-simple</artifactId>
		    <version>1.1.1</version>
		</dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>jira-maven-plugin</artifactId>
                <version>${amps.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <productVersion>${jira.version}</productVersion>
                    <productDataVersion>${jira.version}</productDataVersion>
                    <!-- Uncomment to install TestKit backdoor in JIRA. -->
                    <!--
                    <pluginArtifacts>
                        <pluginArtifact>
                            <groupId>com.atlassian.jira.tests</groupId>
                            <artifactId>jira-testkit-plugin</artifactId>
                            <version>${testkit.version}</version>
                        </pluginArtifact>
                    </pluginArtifacts>
                    -->
                    <enableQuickReload>true</enableQuickReload>
                    <!-- See here for an explanation of default instructions: -->
                    <!-- https://developer.atlassian.com/docs/advanced-topics/configuration-of-instructions-in-atlassian-plugins -->
                    <instructions>
                        <Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key>
                        <!-- Add package to export here -->
                        <Export-Package>com.jira.bad.api,</Export-Package>
                        <!-- Add package import here -->
                        <Import-Package>org.springframework.osgi.*;resolution:="optional", org.eclipse.gemini.blueprint.*;resolution:="optional", *</Import-Package>
                        <!-- Ensure plugin is spring powered -->
                        <Spring-Context>*</Spring-Context>
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.atlassian.plugin</groupId>
                <artifactId>atlassian-spring-scanner-maven-plugin</artifactId>
                <version>${atlassian.spring.scanner.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>atlassian-spring-scanner</goal>
                        </goals>
                        <phase>process-classes</phase>
                    </execution>
                </executions>
                <configuration>
                    <scannedDependencies>
                        <dependency>
                            <groupId>com.atlassian.plugin</groupId>
                            <artifactId>atlassian-spring-scanner-external-jar</artifactId>
                        </dependency>
                    </scannedDependencies>
                    <verbose>false</verbose>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <properties>
        <jira.version>7.13.0</jira.version>
        <amps.version>8.0.2</amps.version>
        <plugin.testrunner.version>2.0.1</plugin.testrunner.version>
        <atlassian.spring.scanner.version>1.2.13</atlassian.spring.scanner.version>
        <!-- This property ensures consistency between the key in atlassian-plugin.xml and the OSGi bundle's key. -->
        <atlassian.plugin.key>${project.groupId}.${project.artifactId}</atlassian.plugin.key>
        <!-- TestKit version 6.x for JIRA 6.x -->
        <testkit.version>6.3.11</testkit.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>
</project>

Can you please help me out if there is any issue in this files.