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
Are you a whiz at handling tickets and looking at how you can further optimize your workflow with automation? Do you tackle detailed customer support questions while simultaneously getting flooded wi...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs