Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to handle dependencies for jira plugins (in IntelliJ IDEA)?

I developed a jira plugin in eclipse. It's working so far. Now I wanted to switch to IntelliJ IDEA. There I activated the plugin to handle the dependencies with Maven.

For some imports in the java files IntelliJ is complaining about missing dependencies. For example "org.slf4j.Logger" or "com.atlassian.plugin.PluginParseException" or "javax.servlet.http.HttpServlet".

In an example project I saw that they added these lines for example in the pom.xml:

 

        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-webfragment-api</artifactId>
            <scope>provided</scope>
        </dependency>

 

This doesn't work in IntelliJ because the IDE needs the version of the dependencies. Now for me is the question how to know which version is provided by Jira 7.3.3 for example. If I search for "javax.servlet" in IntelliJ then there are for example version 2.5 or 3.0.1. And for "slf4j" I don't know if "slf4j-simple" is the right one because the maven of IntelliJ cannot find it.

In eclipse I could use "atlas-mvn eclipse:eclipse" which added all dependencies so that eclipse didn't complained about missing dependencies.

So my questions are:

  • How do I know which versions are provided by the target Jira Version?
  • How you handle in general these dependencies in IntelliJ?

1 answer

Hi Jens - since this is development related, you might want to try asking this over at: https://community.developer.atlassian.com as well (if you haven't already).

Hoepfully someone over there will be able to help.

Oh, thanks I will ask there. :)

Here's a link to the topic over in the developer community, so others can find/follow: https://community.developer.atlassian.com/t/how-to-handle-dependencies-for-jira-plugins-in-intellij-idea/2078

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Why you should move agile planning to Lucidspark’s digital whiteboard

During my 17 years as a coach, mentor, and trainer of Agile teams, I’ve participated in hundreds of Agile planning meetings. The end result was a wall of backlog items annotated by an explosion of co...

91 views 0 5
Read article

Community Events

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

Events near you