felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <XavierMillie...@Eaton.com>
Subject IPOJO junit4osgi
Date Mon, 26 Aug 2013 08:52:55 GMT
Hi all,

I try to use junit4osgi in my project with the maven plugin: maven-junit4osgi-plugin
I read this:
                http://ipojo-dark-side.blogspot.de/2008/11/maven-junit4osgi-plugin.html
                http://felix.apache.org/site/apache-felix-ipojo-junit4osgi-tutorial.html

My goal is: to use this plugin for Maven pass test after compilation, which will also be used
in a phase of continuous integration

My pom:

<dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.ipojo.junit4osgi</artifactId>
            <version>1.0.0</version>
</dependency>

<dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.ipojo.annotations</artifactId>
            <version>${ipojo.version}</version>
</dependency>


<plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-junit4osgi-plugin</artifactId>
                <version>1.0.0</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>test</goal>
                        </goals>
                        <configuration>
                            <deployprojectartifact>false</deployprojectartifact>
                        </configuration>
                    </execution>
                </executions>
</plugin>


And when I launch my maven test

ERROR: Error starting file: ......

org.osgi.framework.BundleException: Unresolved constraint in bundle 5: package; (package=javax.transaction.xa)
                at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3090)
                at org.apache.felix.framework.Felix.startBundle(Felix.java:1439)
                at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984)
                at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
                at java.lang.Thread.run(Thread.java:724)
ERROR: Error starting file:/c:/xav/.m2/org/apache/geronimo/specs/geronimo-jms_1.1_spec/1.1.1/geronimo-jms_1.1_spec-1.1.1.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle 5: package; (package=javax.transaction.xa))
org.osgi.framework.BundleException: Unresolved constraint in bundle 5: package; (package=javax.transaction.xa)
                at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3090)
                at org.apache.felix.framework.Felix.startBundle(Felix.java:1439)
                at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984)
                at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
                at java.lang.Thread.run(Thread.java:724)
ERROR: Error starting file:/c:/xav/.m2/org/apache/activemq/activemq-core/5.7.0/activemq-core-5.7.0.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle 6: package; (package=javax.management))
org.osgi.framework.BundleException: Unresolved constraint in bundle 6: package; (package=javax.management)
                at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3090)
                at org.apache.felix.framework.Felix.startBundle(Felix.java:1439)
                at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984)
                at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
                at java.lang.Thread.run(Thread.java:724)

...........

Perhaps I don't understand the goal of the junit4OSGi, or it's missing something ....

Please, is it possible to have any help ??

regards

Xavier Millieret
Software Engineer



________________________________
Eaton Industries (France) S.A.S ~ Si?ge social: 110 Rue Blaise Pascal, Immeuble Le Vis?o -
B?timent A Innovall?e, 38330, Montbonnot-St.-Martin, France ~ Lieu d'enregistrement au registre
du commerce: Grenoble ~ Num?ro d'enregistrement: 509 653 176 ~ Capital social souscrit et
liber?:? 16215441 ~ Num?ro de TVA: FR47509653176

________________________________



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message