On Tue, Oct 11, 2011 at 22:34, Daniel Kulp <dk...@apache.org> wrote: > On Tuesday, October 11, 2011 10:28:11 PM Guillaume Nodet wrote: > > I tried to minimize the number of dependencies installed by not > installing > > the whole activemq and cxf features. > > Well, it NEEDS the CXF feature for the logging and utility stuff (until we > split cxf-common-utilities into it's own bundle or something). And I > don't > want multiple versions of ActiveMQ installed. I think for the version > range > to work, it had to be a feature, not on a specific bundle. I'd love > to > see the activemq features.xml file setup to allow a "minimal" or "invm" or > similar smaller feature that could be relied on instead, but that's not > available right now. >
If it's really about a few classes, I'd much rather embed them in a private package than requiring a ton of bundles. For activemq, if you install the obr feature before installing the wsn, and if you already have an activemq bundle installed, it won't install the specified version. That's what the resolver="(obr)" and dependency="true" are used for in the descriptor. > > > You just bumped the amount of bundles installed from 6 to a few dozens. > > Btw, on which version of karaf did you deploy this feature ? It doen't > work > > on karaf 2.2.x afaik. > > 2.2.4-SNAPSHOT (will try with the release in a bit). > > Dan > > > > > > On Tue, Oct 11, 2011 at 22:19, <dk...@apache.org> wrote: > > > Author: dkulp > > > Date: Tue Oct 11 20:19:25 2011 > > > New Revision: 1182065 > > > > > > URL: http://svn.apache.org/viewvc?rev=1182065&view=rev > > > Log: > > > Fix groupid for bundle, possibly use version of activemq already > > > installed> > > > Modified: > > > cxf/trunk/osgi/karaf/features/src/main/resources/features.xml > > > cxf/trunk/services/wsn/wsn-osgi/pom.xml > > > > > > Modified: cxf/trunk/osgi/karaf/features/src/main/resources/features.xml > > > URL: > > > > http://svn.apache.org/viewvc/cxf/trunk/osgi/karaf/features/src/main/reso > > > urces/features.xml?rev=1182065&r1=1182064&r2=1182065&view=diff > > > > > > > ======================================================================== > > > ====== --- > cxf/trunk/osgi/karaf/features/src/main/resources/features.xml > > > (original) > > > +++ cxf/trunk/osgi/karaf/features/src/main/resources/features.xml Tue > > > Oct > > > 11 20:19:25 2011 > > > @@ -17,6 +17,8 @@ > > > > > > limitations under the License. > > > > > > --> > > > <features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0" > > > > > > name="cxf-${project.version}"> > > > + > > > > > > <repository>mvn:org.apache.activemq/activemq-karaf/${cxf.activemq.vers > > > ion}/xml/features</repository>> > > > + > > > > > > <feature name="cxf-specs" version="${project.version}" > > > > > > resolver='(obr)'> > > > > > > <bundle > > > > > > > start-level='10'>mvn:org.apache.servicemix.specs/org.apache.servicemix.s > > > pecs.activation-api-1.1/${cxf.servicemix.specs.version}</bundle>> > > > <bundle > > > > > > > start-level='10'>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_s > > > pec/${cxf.geronimo.annotation.version}</bundle> @@ -122,14 +124,9 @@ > > > > > > cxf.wsn.port = 8182 > > > > > > </config> > > > > > > + <feature version="[5.4,6)">activemq</feature> > > > > > > <feature version="${project.version}">cxf</feature> > > > > > > - <bundle > > > > dependency="true">mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/${ > > > cxf.geronimo.transaction.version}</bundle> - <bundle > > > > dependency="true">mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/${ > > > cxf.geronimo.jms.version}</bundle> - <bundle > > > > dependency="true">mvn:org.apache.geronimo.specs/geronimo-j2ee-management > > > _1.1_spec/${cxf.geronimo.j2ee.management.version}</bundle> - > > > <bundle > > > > dependency="true">mvn:org.apache.activemq/kahadb/${cxf.activemq.version} > > > </bundle> - <bundle > > > > dependency="true">mvn:org.apache.activemq/activemq-core/${cxf.activemq.v > > > ersion}</bundle> - > > > > > > > <bundle>mvn:org.apache.cxf.services.wsn/cxf-services-wsn-osgi/${project. > > > version}</bundle>> > > > </feature> > > > > > > </features> > > > > > > Modified: cxf/trunk/services/wsn/wsn-osgi/pom.xml > > > URL: > > > > http://svn.apache.org/viewvc/cxf/trunk/services/wsn/wsn-osgi/pom.xml?rev > > > =1182065&r1=1182064&r2=1182065&view=diff > > > > > > > ======================================================================== > > > ====== --- cxf/trunk/services/wsn/wsn-osgi/pom.xml (original) > > > +++ cxf/trunk/services/wsn/wsn-osgi/pom.xml Tue Oct 11 20:19:25 2011 > > > @@ -34,7 +34,7 @@ > > > > > > <dependencies> > > > > > > <dependency> > > > > > > - <groupId>org.apache.cxf</groupId> > > > + <groupId>org.apache.cxf.services.wsn</groupId> > > > > > > <artifactId>cxf-services-wsn-core</artifactId> > > > <version>${project.version}</version> > > > > > > </dependency> > -- > Daniel Kulp > dk...@apache.org > http://dankulp.com/blog > Talend - http://www.talend.com > -- ------------------------ Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com