Javax.ws.rs in Jira plugins

Hi community!
I want to use some features of javax.ws.rs package
The default dependency in Jira plugin is

<dependency>
            <groupId>javax.ws.rs</groupId>
            <artifactId>jsr311-api</artifactId>
            <version>1.1.1</version>
            <scope>provided</scope>
</dependency>

But it does not cover all my needs:

  • I want to use javax.ws.rs.client for making request to 3rd party api in my webwork action
  • I want to use filters\interceptors for my rest resources
  • I need to make calls to SOAP ws

I try to use

<!-- https://mvnrepository.com/artifact/javax.ws.rs/javax.ws.rs-api -->
<dependency>
    <groupId>javax.ws.rs</groupId>
    <artifactId>javax.ws.rs-api</artifactId>
    <version>2.1.1</version>
    <scope>provided</scope>
</dependency>

But i cannot start my plugin

Caused by: org.osgi.framework.BundleException: Unable to resolve … osgi.wiring.package=com.sun.jdi

I trying to use another libs, but It cannot helps. Every times i get BundleException with another packages that not resolved.

Please, help me.

As I understand, the solution is add unresolved packages to section of your jira-maven-plugin configuration