Maven can't resolve dependency
<p>I have a problem with maven being unable to resolve a dependency that I need help with. </p>

<p>I am using maven 3.0.5 to build a project in electriccommander. The project has jna as dependency and it looks like this in the pom:</p>

<pre><code>&lt;dependency&gt;
   &lt;groupId&gt;net.java.dev.jna&lt;/groupId&gt;
   &lt;artifactId&gt;jna&lt;/artifactId&gt;
   &lt;version&gt;4.1.0&lt;/version&gt;
   &lt;scope&gt;test&lt;/scope&gt;
&lt;/dependency&gt;
</code></pre>

<p>The relevant repository is also added in the pom and the repository has both the pom and jar file for jna in <a href="http://url/content/groups/release-build-repos/net/java/dev/jna/jna/4.1.0/" rel="nofollow">http://url/content/groups/release-build-repos/net/java/dev/jna/jna/4.1.0/</a></p>

<p>When building the project it however fails with this message:</p>

<pre><code>!ENTRY org.eclipse.osgi 2 0 2016-07-21 05:28:44.384
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2016-07-21 05:28:44.384
!MESSAGE Bundle initial@reference:file:plugins/net.java.dev.jna/jna-4.1.0.jar/ was not resolved.
</code></pre>

<p>during the junit test run. Building with -DskipTests works fine though.</p>

<p>However in the output of the failing build it tells me that it is successfully downloading the relevant jar and pom file for dna:</p>

<pre><code>Downloaded: http://url/content/groups/release-build-repos/net/java/dev/jna/jna/4.1.0/jna-4.1.0.pom (2 KB at 26.5 KB/sec)
</code></pre>

<p>I get both the Downloading and Downloaded message for the pom and jar file.</p>

<p>So far I've tried a different maven version (3.2.5) as well as changing the scope of the dependency in the pom and completely removing the whole config and workspace and rebuilding from scratch neither of which had any success.</p>

<p>Is there anything I am missing that would cause that?
Thanks</p>