As I mentioned, org.scala-lang/scala-library/2.10.4 doesn't export 'scala.reflect.api':
karaf@root> features:chooseurl camel 2.15.1 Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.15.1/xml/features karaf@root> install -s mvn:org.scala-lang/scala-library/2.10.4 Bundle ID: 52 karaf@root> packages:exports 52 | grep 'scala.reflect' 52 scala.reflect; version=2.10.4.v20140209-180020-VFINAL-b66a39653b 52 scala.reflect.macros.internal; version=2.10.4.v20140209-180020-VFINAL-b66a39653b Best, Christian ----------------- Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Member https://www.linkedin.com/pub/christian-mueller/11/551/642 On Sun, Mar 29, 2015 at 11:24 PM, Krzysztof Sobkowiak < krzys.sobkow...@gmail.com> wrote: > Hi > > You must install mvn:org.scala-lang/scala-reflect/2.10.4. But next I have > new problem > > Error executing command: Can't install feature camel-swagger/0.0.0: > Could not start bundle > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.swagger-core/1.3.12_1 > in > feature(s) camel-swagger-2.15.1: Uses constraint violation. Unable to > resolve bundle revision > org.apache.servicemix.bundles.swagger-core [167.0] because it is exposed > to package 'scala.collection.immutable' from > bundle revisions org.scala-lang.scala-library [215.0] and > org.scala-lang.scala-library [138.0] via two dependency chains. > > Chain 1: > org.apache.servicemix.bundles.swagger-core [167.0] > import: > (&(osgi.wiring.package=scala.collection.immutable)(version>=2.10.0)(!(version>=3.0.0))) > | > export: osgi.wiring.package=scala.collection.immutable > org.scala-lang.scala-library [215.0] > > Chain 2: > org.apache.servicemix.bundles.swagger-core [167.0] > import: > (&(osgi.wiring.package=scala.reflect.api)(version>=2.10.0)(!(version>=3.0.0))) > | > export: osgi.wiring.package=scala.reflect.api; > uses:=scala.collection.immutable > org.scala-lang.scala-reflect [199.0] > import: (osgi.wiring.package=scala.collection.immutable) > | > export: osgi.wiring.package=scala.collection.immutable > org.scala-lang.scala-library [138.0] > > > > Regards > Krzysztof > > > > On 29.03.2015 22:07, Christian Müller wrote: > > + 0 > > > > The signature looks good. > > I could install almost all bundles in Karaf 2.4.1. > > > > Some findings: > > The camel-cxf feature doesn't install the camel-spring feature, which is > a > > required dependency. This leads to errors like this one: > > > > ERROR: Bundle org.apache.camel.camel-cxf [105] Error starting > > mvn:org.apache.camel/camel-cxf/2.15.1 > (org.osgi.framework.BundleException: > > Unresolved constraint in bundle org.apache.camel.camel-cxf [105]: Unable > to > > resolve 105.0: missing requirement [105.0] osgi.wiring.package; > > > (&(osgi.wiring.package=org.apache.camel.spring)(version>=2.15.0)(!(version>=2.16.0)))) > > org.osgi.framework.BundleException: Unresolved constraint in bundle > > org.apache.camel.camel-cxf [105]: Unable to resolve 105.0: missing > > requirement [105.0] osgi.wiring.package; > > > (&(osgi.wiring.package=org.apache.camel.spring)(version>=2.15.0)(!(version>=2.16.0))) > > at > > org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002) > > at org.apache.felix.framework.Felix.startBundle(Felix.java:2045) > > at > org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299) > > at > > > org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304) > > at java.lang.Thread.run(Thread.java:745) > > ERROR: Bundle org.apache.camel.camel-cxf [105] Error starting/stopping > > bundle. (org.osgi.framework.BundleException: Unresolved constraint in > > bundle org.apache.camel.camel-cxf [105]: Unable to resolve 105.0: missing > > requirement [105.0] osgi.wiring.package; > > > (&(osgi.wiring.package=org.apache.camel.spring)(version>=2.15.0)(!(version>=2.16.0)))) > > org.osgi.framework.BundleException: Unresolved constraint in bundle > > org.apache.camel.camel-cxf [105]: Unable to resolve 105.0: missing > > requirement [105.0] osgi.wiring.package; > > > (&(osgi.wiring.package=org.apache.camel.spring)(version>=2.15.0)(!(version>=2.16.0))) > > at > > org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002) > > at org.apache.felix.framework.Felix.startBundle(Felix.java:2045) > > at > org.apache.felix.framework.Felix.setBundleStartLevel(Felix.java:1491) > > at > > > org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:334) > > at java.lang.Thread.run(Thread.java:745) > > > > The work around is easy. Install camel-spring before you install > camel-cxf. > > I will add this to the known issues section in the Camel 2.15 release > notes. > > > > > > The camel-swagger feature doesn't install the scala bundle, which is a > > required dependency. This leads to errors like this one: > > > > ERROR: Bundle org.apache.servicemix.bundles.swagger-core [89] Error > > starting > > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.swagger-core/1.3.12_1 > > (org.osgi.framework.BundleException: Unresolved constraint in bundle > > org.apache.servicemix.bundles.swagger-core [89]: Unable to resolve 89.0: > > missing requirement [89.0] osgi.wiring.package; > > > (&(osgi.wiring.package=scala.reflect.api)(version>=2.10.0)(!(version>=3.0.0)))) > > org.osgi.framework.BundleException: Unresolved constraint in bundle > > org.apache.servicemix.bundles.swagger-core [89]: Unable to resolve 89.0: > > missing requirement [89.0] osgi.wiring.package; > > > (&(osgi.wiring.package=scala.reflect.api)(version>=2.10.0)(!(version>=3.0.0))) > > at > > org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002) > > at org.apache.felix.framework.Felix.startBundle(Felix.java:2045) > > at > org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299) > > at > > > org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304) > > at java.lang.Thread.run(Thread.java:745) > > > > I'm wondering, because mvn:org.scala-lang/scala-library/2.10.4 doesn't > > export 'scala.reflect.api'... > > > > > > > > The Camel documentation still mentions 'Copyright 2007-2014', but I have > > updated it now. It should be ok in the following releases... > > > > Best, > > Christian > > > > > > > > On Sat, Mar 28, 2015 at 3:22 PM, Willem Jiang <willem.ji...@gmail.com> > > wrote: > > > >> This is a vote to release Apache Camel 2.15.1, a patch release coming > >> > >> with about 55 issues fixed. > >> > >> Release notes: > >> 2.15.1 > >> > https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12329441&styleName=Html&projectId=12311211 > >> > >> > >> > >> Staging repo: > >> 2.15.1 > >> https://repository.apache.org/content/repositories/orgapachecamel-1029 > >> > >> > >> > >> Tarballs: > >> 2.15.1 > >> > https://repository.apache.org/content/repositories/orgapachecamel-1029/org/apache/camel/apache-camel/2.14.2/ > >> > >> > >> > >> Tag: > >> 2.15.1 > >> > https://git-wip-us.apache.org/repos/asf?p=camel.git;a=commit;h=e18459e53cf77514bb0fdfeceb423c456bbc4d9d > >> > >> Please test this release candidate and cast your vote. > >> [ ] +1 Release the binary as Apache Camel 2.15.1 > >> [ ] -1 Veto the release (provide specific comments) > >> Vote is open for at least 72 hours. > >> > >> > >> -- > >> Willem Jiang > >> > >> Red Hat, Inc. > >> Web: http://www.redhat.com > >> Blog: http://willemjiang.blogspot.com (English) > >> http://jnn.iteye.com (Chinese) > >> Twitter: willemjiang > >> Weibo: 姜宁willem > >> > >> > >> > >> > > -- > Krzysztof Sobkowiak > > JEE & OSS Architect > Senior Solution Architect @ Capgemini SSC < > http://www.pl.capgemini-sdm.com/en> > Apache ServiceMix <http://servicemix.apache.org/> Committer & PMC >