I am currently developing a custom field plugin for JIRA. This plugin requires access to an external SQL Server database in order to populate the field with data. I am trying to use the jtds JDBC driver with name "net.sourceforge.jtds.jdbc.Driver" but i am receiving a ClassNotFoundException when attempting to edit or create an issue due to the fact that JIRA can't find the associated "jtds.jar" file. I have tried copying and pasting the .jar file into the \lib directory and many other directories but to no avail. If someone could simply point out which directory to place the "jtds.jar" file into so that JIRA can load and see it.
I have tested that the database is available and the code functions as expected with no errors in a local version of Eclipse. I had the exact error when i tried to run the code in eclipse for the first time until i pointed eclipse to the location of the jtds.jar file and it worked perfectly.
Any help is much appreciated.
As Jamie has pointed out, you need to add your jar as a compile dependency, so open the pom.xml that was generated by the SDK and add the following to the dependencies section
<dependency> <groupId>net.sourceforge.jtds</groupId> <artifactId>jtds</artifactId> <version>1.2.4</version> <scope>compile</scope> </dependency>
This developer page gives a lot more info https://developer.atlassian.com/display/DOCS/Setting+OSGi+Manifest+Instructions+in+your+Plugin
Hi Everyone! My name is Mina and I am on Atlassian’s Ecosystems Marketing team. Our team is focused on our technology partnerships and marketplace apps. One of Atlassian’s partners is Slack, who ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events