Note that there are some explanatory texts on larger screens.

plurals
  1. PORunning Arquillian in Equinox
    text
    copied!<p>I'm trying to run integration tests in an OSGi container, namely the Equinox container embedded in Eclipse, using Arquillian in remote mode.</p> <p>I followed <a href="https://docs.jboss.org/author/display/JBOSGI/Arquillian+Test+Framework" rel="nofollow">the instructions</a> given on the JBoss OSGI site. So I began by provisionning my target platform by adding these artefacts (which I found by browsing the <a href="https://repository.jboss.org/nexus/index.html#view-repositories;public-jboss~browsestorage" rel="nofollow">jboss repository</a>) : </p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;org.jboss.arquillian.osgi&lt;/groupId&gt; &lt;artifactId&gt;arquillian-osgi-bundle&lt;/artifactId&gt; &lt;version&gt;1.0.0&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;!-- required by arquillian-osgi-bundle --&gt; &lt;groupId&gt;org.jboss.logging&lt;/groupId&gt; &lt;artifactId&gt;jboss-logging&lt;/artifactId&gt; &lt;version&gt;3.1.0.GA&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.jboss.osgi.jmx&lt;/groupId&gt; &lt;artifactId&gt;jboss-osgi-jmx&lt;/artifactId&gt; &lt;version&gt;1.0.10&lt;/version&gt; &lt;/dependency&gt; </code></pre> <p>When I try to validate the bundles, I get unsatisfied imports from jboss-osgi-jmx : </p> <ul> <li>missing package org.jboss.osgi.spi.capability </li> <li>missing package org.jboss.osgi.testing</li> </ul> <p>Apparently, the missing packages belong to these artifacts (once again, found by browsing):</p> <pre><code>&lt;!-- osgi.spi : this one ?--&gt; &lt;dependency&gt; &lt;groupId&gt;org.jboss.osgi&lt;/groupId&gt; &lt;artifactId&gt;jboss-osgi-spi&lt;/artifactId&gt; &lt;version&gt;1.0.10&lt;/version&gt; &lt;/dependency&gt; &lt;!-- or that one ?--&gt; &lt;dependency&gt; &lt;groupId&gt;org.jboss.osgi.spi&lt;/groupId&gt; &lt;artifactId&gt;jbosgi-spi&lt;/artifactId&gt; &lt;version&gt;1.0.26&lt;/version&gt; &lt;/dependency&gt; &lt;!-- osgi.testing --&gt; &lt;dependency&gt; &lt;groupId&gt;org.jboss.osgi.testing&lt;/groupId&gt; &lt;artifactId&gt;jbosgi-testing&lt;/artifactId&gt; &lt;version&gt;1.0.4&lt;/version&gt; &lt;/dependency&gt; </code></pre> <p>But neither of these artifacts is an OSGI bundle, so I'm stuck with unresolved constraints.</p> <p>So, my questions are :</p> <ul> <li>did I screw up my platform configuration ?</li> <li>does anybody already succeeded at using Arquillian inside a non-JBoss osgi container in remote mode (plain felix would be OK) ?</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload