Hi,
How about in your master features.xml, you just use repository tag to
refer other sub-module features.xml, just paste what we do for
servicemix features.xml like
<features>
<repository>mvn:org.apache.karaf/apache-karaf/2.1.3-SNAPSHOT/xml/
features</repository>
<repository>mvn:org.apache.servicemix.nmr/apache-servicemix-nmr/
1.3.0-SNAPSHOT/xml/features</repository>
<repository>mvn:org.apache.camel.karaf/apache-camel/2.6-SNAPSHOT/
xml/features</repository>
...
So you can see in the servicemix features.xml(the master features.xml
in your term), just refer features.xml for camel,nmr and karaf, so
that the master features.xml could be very neat.
Freeman
On 2011-1-7, at 上午6:10, karafman wrote:
Andreas,
That's what I'm currently doing, personally creating one master
features.xml
file for the application. The problem is, as the functionality of the
application grows, and/or as the dependencies within each functional
area
grows, maintaining a single file becomes a burdensome task.
Borrowing a page from Agile, I'm thinking about pushing down the
task of
maintaining each functional area's provisioning file to the folks
who are
actually developing that area of functionality. Then, during
compile-time,
aggregate them all into a master provisioning file for the
application. The
folks who know best what technologies are needed are the
implementers, so
doing this seems a logical thing.
As small OSGi applications grow in complexity, this kind of
functionality
seems like something we'd want to provide (assuming it isn't already
present).
-----
Karafman
Slayer of the JEE
Pounder of the Perl Programmer
--
View this message in context:
http://karaf.922171.n3.nabble.com/Aggregating-provisioning-files-tp2207656p2208537.html
Sent from the Karaf - User mailing list archive at Nabble.com.
--
Freeman Fang
------------------------
FuseSource: http://fusesource.com
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org