Are you sure you don't just need: <javase>1.8</javase>
in your <configuration/> of the karaf-maven-plugin? On Mon, Sep 12, 2016 at 5:16 PM, Brad Johnson <brad.john...@mediadriver.com> wrote: > Last night I was trying to use the new Camel 2.17.3 CDI with pax-cdi in > the karaf registry/static profile mechanism in 4.0.6 that permits creating > small subsets of functionality and zipping them up. I've tried it before > with good success and figured the problems I was having were related to my > features and profile set up. > > After some fiddling getting the Camel profile pointed to the right and > adding in the camel-cdi in the profile's feature list and debugging my > features file I kept getting hung up right at the last minute. Even with > debugging it didn't make much sense to me. > > So I switched over to blueprint quickly to see how that would work and I > ran into the same error. Finally I took a harder look and realized it was > complaining about not being able to find Java 1.8 required by the bundle. > > My IDE is set to that but it appears that the Java version is hard coded > in the org.apache.karaf/karaf/4.0.6 file and unsettable by the child > projects. I'm not sure I'd call that a bug exactly but it appears that I'll > either have to set my compiler preferences back to 1.7 for my project or > download the karaf 4.0.6 and recompile or override the maven plugins in the > lower level projects. > > Seems like that should be settable at a lower level. Java 1.7 is getting > somewhat long in the tooth and it's a shame to have to retreat back to an > earlier compiler version. I can't be 100% sure but after debugging and > getting rid of any other errors, I hit this. > > Unable to build assembly: Unable to resolve root: missing requirement > [root] osgi.identity; osgi.identity=development-all; type=karaf.feature; > filter:="(&(osgi.identity=development-all)(type=karaf.feature))" [caused > by: Unable to resolve panda-development-all/0.0.1.SNAPSHOT: missing > requirement [development-all/0.0.1.SNAPSHOT] osgi.identity; > osgi.identity=commons; type=osgi.bundle; > version="[0.0.1.SNAPSHOT,0.0.1.SNAPSHOT]"; > resolution:=mandatory [caused by: Unable to resolve commons/0.0.1.SNAPSHOT: > missing requirement [commons/0.0.1.SNAPSHOT] osgi.ee; filter:="(&(osgi.ee > =JavaSE)(version=1.8))"]] >