Hi, You might as well check your code, as in most cases it should not be necessary to use/import classes/packages from org.apache.felix.framework.* in the first place. It's good practice to program implementation-agnostic and always program against the interfaces from org.osgi.core and org.osgi.compendium instead.
Regards, Benjamin -----Original Message----- From: Achim Nierbeck [mailto:[email protected]] Sent: Mittwoch, 18. September 2013 13:46 To: [email protected] Subject: Re: Integration Tests during maven lifecycle phase integration-test Hi, you might want to take a look at a project and it's pom on how to best use Pax-Exam. [1] But those questions are probably better placed at the ops4j mailinglist :) regards, Achim [1] - https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-web-itest/pax -web-itest-container/pax-web-itest-container-jetty/pom.xml 2013/9/18 Roland <[email protected]> > Sorry for disturbing. My test does not work. I get an exception on startup. > > 13:07:12.114 [main] INFO o.o.pax.exam.spi.DefaultExamSystem - Pax > Exam System (Version: 3.2.0) created. > 13:07:12.125 [main] DEBUG o.ops4j.store.intern.TemporaryStore - > Storage Area is C:\Users\wgl\AppData\Local\Temp\1379502432123-0 > 13:07:12.174 [main] INFO o.o.pax.exam.junit.impl.ProbeRunner - > creating PaxExam runner for class > de.ids.acos.rtu.osgi.test.baseconfwrapperbundle.BaseConfIntegrationTes > t > 13:07:12.179 [main] DEBUG o.ops4j.pax.exam.spi.PaxExamRuntime - Found > TestContainerFactory: > org.ops4j.pax.exam.nat.internal.NativeTestContainerFactory > ERROR: Bundle mygroup.mybundle [17] Error starting > mvn:mygroup/mybundle/1.0.0.0 (org.osgi.framework.BundleException: > Unresolved > constraint in bundle mygroup.mybundle [17]: Unable to resolve 17.0: > missing requirement [17.0] osgi.wiring.package; > (osgi.wiring.package=org.apache.felix.framework)) > > > @Configuration > public Option[] config() { > Logger root = (Logger) > LoggerFactory.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME); > root.setLevel(Level.WARN); > Option[] conf = options( > > systemProperty("org.osgi.framework.startlevel.beginning").value("4"), > > > mavenBundle().groupId("mygroup").artifactId("bybundle").version("1.0.0") .startLevel(2).start(), > junitBundles()); > return conf; > } > > Any suggestions? > > Thanks and Regards! > Roland > > > > -- > View this message in context: > http://apache-felix.18485.x6.nabble.com/Integration-Tests-during-maven > -lifecycle-phase-integration-test-tp5005004p5005046.html > Sent from the Apache Felix - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter & Project Lead blog <http://notizblog.nierbeck.de/> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

