I developed a plugin which uses some datetime functions of the joda-time library. All is fine when I compile the plugin and test it using "atlas-run". But when I compile this plugin and install it in another JIRA system I get errors because joda-time library is missing. I am using JIRA 6.1.5.
Do you have an example how I can add this dependency in my plugin project? Thank you!
Community moderators have prevented the ability to post new answers.
Hi Mathias,
Try to add the dependency in your POM file as
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.0</version>
</dependency>
or
If you are using eclipse then
Create your java project in eclipse
Download JodaTime
In Eclipse look for your project at package explorer and right click on it then call it New -> Folder -> libs
Copy/Drag joda-time-2.1.jar into the new created libs folder
Right click on your project again (in package explorer) then Properties -> Java Build Path -> Libraries -> Add Jars -> joda-time-2.1.jar
Now you can test with this code :
DateTime test = new DateTime();
if code compiled ok you are good to go
Thanks,
Patina
Please post your pom.xml
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.