Hi Mark, don't know about your setup, but basically I'd expect the tests to be in a different module as the kar bundling itself. A usual test environment for Karaf would consist of a module for integration testing with Pax Exam and Karaf. That module should contain all junit specifc stuff and expects a Karaf with your kar installed. Or do you do this differently? And if why? :)
regards, Achim 2014-09-24 16:03 GMT+02:00 Mark Doyle <[email protected]>: > Hi all, > > I have a project that has a collection of unit tests that are obviously > run in the maven test phase. > > I'd like to use the karaf plugin and the kar packaging type to generate a > features file and a kar archive. > > However, when I build my project, my unit tests fail as the test resources > are no longer found. It makes sense that test material and code would not > end up in the kar but I'm not sure what the recommended process is for > having both. I feel like I'm missing something with the karaf plugin. > > Thanks in advance. > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Software Architect / Project Manager / Scrum Master
