<features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0" name="teiid-${project.version}">
    <repository>mvn:org.apache.cxf.karaf/apache-cxf/2.6.6.1/xml/features</repository>
    
    <feature name="teiid" version="${project.version}">
        <feature version="[2.6.6,3]">cxf</feature>
        
        <!-- Core Dependencies -->
        <bundle dependency="true">wrap:mvn:javax.resource/connector-api/${version.connector-api}</bundle>
        <bundle dependency="true">mvn:org.infinispan/infinispan-core/${version.org.infinispan}</bundle>
        <bundle dependency="true">wrap:mvn:jaxen/jaxen/${version.jaxen}</bundle>
        <bundle dependency="true">mvn:org.jboss.logging/jboss-logging/${version.org.jboss.logging.jboss-logging}</bundle>
        <bundle dependency="true">wrap:mvn:org.jboss.marshalling/jboss-marshalling-river/${version.org.jboss.marshalling.jboss-marshalling-river}</bundle>
        <bundle dependency="true">wrap:mvn:org.jboss.marshalling/jboss-marshalling/${version.org.jboss.marshalling.jboss-marshalling}</bundle>
        <bundle dependency="true">mvn:org.jgroups/jgroups/${version.org.jgroups}</bundle>
        <bundle dependency="true">wrap:mvn:javax.transaction/jta/${version.jta}</bundle>
        <bundle dependency="true">wrap:mvn:net.sourceforge.saxon/saxonhe/${version.net.sourceforge.saxon}</bundle>
        <bundle dependency="true">wrap:mvn:org.jboss/staxmapper/${version.org.jboss.staxmapper}</bundle>
        <bundle dependency="true">mvn:xom/xom/${version.nu.xom}</bundle>
        <bundle dependency="true">wrap:mvn:nux/nux/${version.nux}</bundle>
        <bundle dependency="true">wrap:mvn:com.vividsolutions/jts/${version.jts}</bundle>
        <bundle dependency="true">wrap:mvn:org.hibernate/hibernate-core/${version.hibernate-core}</bundle>
       
        <!-- Core libaries -->
        <bundle>mvn:org.jboss.teiid/teiid-common-core/${project.version}</bundle>
        <bundle>mvn:org.jboss.teiid/teiid-client/${project.version}</bundle>
        <bundle>mvn:org.jboss.teiid/teiid-admin/${project.version}</bundle>
        <bundle>mvn:org.jboss.teiid/teiid-api/${project.version}</bundle>
        <bundle>mvn:org.jboss.teiid/teiid-metadata/${project.version}</bundle>
        <bundle>mvn:org.jboss.teiid/teiid-engine/${project.version}</bundle>
        <bundle>mvn:org.jboss.teiid/teiid-runtime/${project.version}</bundle>
        <bundle>mvn:org.jboss.teiid/teiid-hibernate-dialect/${project.version}</bundle>
        
        <!-- optional ones depending upon what sources in use most of them may not be needed -->
        <!-- Connectors -->
        <bundle>mvn:org.jboss.teiid.connectors/connector-file/${project.version}/jar/lib</bundle>
        <bundle>mvn:org.jboss.teiid.connectors/translator-file/${project.version}</bundle>
        
        <!-- webservice 
            see http://www.dankulp.com/blog/2011/11/apache-cxf-in-osgi/
            # comment following in jre.properties
            # javax.activation, \
            # javax.annotation;version="1.1", \
            
            # javax.jws, \
            # javax.jws.soap, \
            
            # javax.xml.bind, \
            # javax.xml.bind.annotation, \
            # javax.xml.bind.annotation.adapters, \
            # javax.xml.bind.attachment, \
            # javax.xml.bind.helpers, \
            # javax.xml.bind.util, \
            
            # javax.xml.soap, \
            # javax.xml.stream, \
            # javax.xml.stream.events, \
            # javax.xml.stream.util, \
            
            # javax.xml.ws, \
            # javax.xml.ws.handler, \
            # javax.xml.ws.handler.soap, \
            # javax.xml.ws.http, \
            # javax.xml.ws.soap, \
            # javax.xml.ws.spi, \            
        -->        
        <bundle>mvn:org.jboss.teiid.connectors/connector-ws/${project.version}/jar/lib</bundle>
        <bundle>mvn:org.jboss.teiid.connectors/translator-ws/${project.version}</bundle>
        
        <!-- goggle -->        
        <bundle dependency="true">wrap:mvn:com.google.guava/guava/${version.guava}</bundle>
        <bundle dependency="true">mvn:org.apache.httpcomponents/httpcore-osgi/4.1.4</bundle>
        <bundle dependency="true">mvn:org.apache.httpcomponents/httpclient-osgi/4.1.3</bundle>
        <bundle dependency="true">wrap:mvn:org.jboss.teiid.connectors.google/gdata-spreadsheet/${version.gdata-spreadsheet}</bundle>
        <bundle dependency="true">wrap:mvn:org.jboss.teiid.connectors.google/gdata-core/${version.gdata-core}</bundle>
        <bundle dependency="true">mvn:org.jboss.teiid.connectors/google-api/${project.version}</bundle>
        <bundle>mvn:org.jboss.teiid.connectors/connector-google/${project.version}/jar/lib</bundle>
        <bundle>mvn:org.jboss.teiid.connectors/translator-google/${project.version}</bundle>
        
        <!-- infinispan 
        <bundle dependency="true">wrap:mvn:gnu-getopt/getopt/1.0.13</bundle>
        <bundle dependency="true">mvn:org.infinispan/infinispan-server-core/${version.org.infinispan}</bundle>
        <bundle dependency="true">mvn:org.infinispan/infinispan-server-hotrod/${version.org.infinispan}</bundle>
        <bundle>wrap:mvn:org.apache.lucene/lucene-core/3.6.2</bundle>
        <bundle>mvn:org.infinispan/infinispan-query/5.2.1.Final</bundle>
        <bundle>wrap:mvn:org.hibernate/hibernate-search/4.1.1.Final</bundle>
        <bundle>wrap:mvn:org.hibernate/hibernate-search-engine/4.2.0.Final</bundle>
        <bundle>wrap:mvn:org.hibernate/hibernate-search-infinispan/4.2.0.Final</bundle>
        <bundle>wrap:mvn:org.hibernate.common/hibernate-commons-annotations/4.0.1.Final</bundle>
        <bundle>mvn:org.jboss.teiid.connectors/connector-infinispan/${project.version}</bundle>
        <bundle>mvn:org.jboss.teiid.connectors/translator-object/${project.version}</bundle>
        -->
        
        <!-- ldap -->
        <bundle>mvn:org.jboss.teiid.connectors/connector-ldap/${project.version}/jar/lib</bundle>
        <bundle>mvn:org.jboss.teiid.connectors/translator-ldap/${project.version}</bundle>
        
        <!-- mongodb -->
        <bundle dependency="true">wrap:mvn:org.mongodb/mongo-java-driver/${version.mongo-java-driver}</bundle>
        <bundle>mvn:org.jboss.teiid.connectors/mongodb-api/${project.version}</bundle>
        <bundle>mvn:org.jboss.teiid.connectors/connector-mongodb/${project.version}/jar/lib</bundle>
        <bundle>mvn:org.jboss.teiid.connectors/translator-mongodb/${project.version}</bundle>
        
        <!-- salesforce -->
        <bundle dependency="true">wrap:mvn:com.force.api/force-wsc/${version.com.force.api}</bundle>
        <bundle>mvn:org.jboss.teiid.connectors/salesforce-api/${project.version}</bundle>
        <bundle>mvn:org.jboss.teiid.connectors/connector-salesforce/${project.version}/jar/lib</bundle>
        <bundle>mvn:org.jboss.teiid.connectors/translator-salesforce/${project.version}</bundle>
        
        <!-- jpa -->
        <bundle>mvn:org.jboss.teiid.connectors/translator-jpa/${project.version}</bundle>
        <bundle>wrap:mvn:org.hibernate.javax.persistence/hibernate-jpa-2.0-api/${version.org.hibernate.javax.persistence.hibernate-jpa-2.0-api}</bundle>
        
        <!-- olap -->
        <bundle dependency="true">wrap:mvn:org.olap4j/olap4j/${version.olap4j}</bundle>
        <bundle dependency="true">wrap:mvn:org.olap4j/olap4j-xmla/${version.olap4j}</bundle>
        <bundle>mvn:org.jboss.teiid.connectors/translator-olap/${project.version}</bundle>

        <!-- odata
        <bundle dependency="true">mvn:org.eclipse.persistence/javax.persistence/2.1.0</bundle>
        <bundle dependency="true">wrap:mvn:org.eclipse.persistence/eclipselink/2.4.2</bundle>
        <bundle dependency="true">wrap:mvn:joda-time/joda-time/2.1</bundle>
        <bundle dependency="true">wrap:mvn:org.core4j/core4j/${version.core4j}</bundle>
        <bundle dependency="true">wrap:mvn:org.odata4j/odata4j-core/${version.org.odata4j}//redhat</bundle>
        <bundle dependency="true">wrap:mvn:org.jboss.resteasy/resteasy-jaxrs/${version.resteasy-jaxrs}</bundle>
        <bundle>mvn:org.jboss.teiid.connectors/translator-odata/${project.version}</bundle>
        -->
        
        <!-- Rest of Translators -->        
        <bundle>mvn:org.jboss.teiid.connectors/translator-hive/${project.version}</bundle>
        <bundle>mvn:org.jboss.teiid.connectors/translator-jdbc/${project.version}</bundle>
        <bundle>mvn:org.jboss.teiid.connectors/translator-loopback/${project.version}</bundle>
        
    </feature>
</features>