title: atlassian plugin sdk: maven dependency of dependency not resolving
body: <p>Currently I am developing a JAVA plugin for (Atlassian) Bitbucket. But I'm fairly new to Maven, and it's dependency management.</p>
  
  <p>Right now I have the following dependency declaration in my pom.xml</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.telegram&lt;/groupId&gt;
      &lt;artifactId&gt;telegrambots&lt;/artifactId&gt;
      &lt;version&gt;2.4.4.5&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>But when I try to run (using <code>atlas-run</code>), I will get the following error when the system tries to enable the plugin:</p>
  
  <blockquote>
    <p>[INFO] [talledLocalContainer] 2017-09-18 17:43:40,422 ERROR [spring-startup] c.a.plugin.osgi.factory.OsgiPlugin Detected an error (BundleException) enabling the plugin 'com.atlassian.bitbucket.plugin.HotfixMes.HotfixMes-Plugin' : Unresolved constraint in bundle com.atlassian.bitbucket.plugin.HotfixMes.Plugin [32]: Unable to resolve 32.0: missing requirement [32.0] osgi.wiring.package; (osgi.wiring.package=com.sun.jdi).  This error usually occurs when your plugin imports a package from another bundle with a specific version constraint and either the bundle providing that package doesn't meet those version constraints, or there is no bundle available that provides the specified package. For more details on how to fix this, see <a href="https://developer.atlassian.com/x/mQAN" rel="nofollow noreferrer">https://developer.atlassian.com/x/mQAN</a></p>
  </blockquote>
  
  <p>Trying to read this, it looks like the dependency <code>com.sun.jdi</code> is not loading. This is what I don't get:</p>
  
  <ol>
  <li>Firstly: this works when I have a "clean" java application without it being a Bitbucket plugin. So no dependency issues there</li>
  <li>I can not find which "sub-dependency" would need it, but I am sure that it has something to do with the org.telegram.telegrambots, since the error only occurs when I have that dependency enabled.</li>
  </ol>
  
  <p>Could somebody point me in the right direction ?</p>