How to install third-party jar libraries required by a user-made plugin in JIRA

1. I made a JIRA plugin which requires third-party jar libraries.

2. I copied the third-party jars into [JIRA Inst]/atlassian-jira/WEB-INF/lib .

3. But the plugin cannot get the classpath to the jars.

Q1. Is it right to copy third-party jars into [JIRA Inst]/atlassian-jira/WEB-INF/lib?

Q2. If it is not, how should I install third-party jars in JIRA?

I want to know JIRA plugin development rules in this perspective.

1 answer

1 accepted

This widget could not be displayed.

Hi Akira,

You'll probably be writing a plugins2 plugin, using maven, which is standard for the atlassian sdk. The method you should use is to deploy your dependencies into a maven repository, and mark them as a compile dependency in your plugins pom.xml. The SDK will then neatly bundle them into your plugin. Deploying JAR's into WEB-INF/lib is not guaranteed to work, and is not a recommended route.

Thanks fro your reply.

I described the third-party library dependency in the pom.xml.

But I do not know how to bundle it into my plugin.

I want to know the part of "mark them as a compile dependency in a pom.xml".

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

585 views 25 15
Join discussion

Atlassian User Groups

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!

Find my local user group

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

Groups near you