<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Copyright 2016-2017 Steinar Bang                                                -->
<!--                                                                                 -->
<!-- Licensed under the Apache License, Version 2.0 (the "License");                 -->
<!-- you may not use this file except in compliance with the License.                -->
<!-- You may obtain a copy of the License at                                         -->
<!--   http://www.apache.org/licenses/LICENSE-2.0                                    -->
<!-- Unless required by applicable law or agreed to in writing,                      -->
<!-- software distributed under the License is distributed on an "AS IS" BASIS,      -->
<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.        -->
<!-- See the License for the specific language governing permissions and limitations -->
<!-- under the License.                                                              -->

<features xmlns="http://karaf.apache.org/xmlns/features/v1.4.0" name="ukelonn.bundle.test.db">
    <feature name="ukelonn-db-postgresql">
        <feature>scr</feature>
        <feature>transaction-api</feature>
        <feature>pax-jdbc-spec</feature>
    </feature>
</features>

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Copyright 2016-2017 Steinar Bang                                                -->
<!--                                                                                 -->
<!-- Licensed under the Apache License, Version 2.0 (the "License");                 -->
<!-- you may not use this file except in compliance with the License.                -->
<!-- You may obtain a copy of the License at                                         -->
<!--   http://www.apache.org/licenses/LICENSE-2.0                                    -->
<!-- Unless required by applicable law or agreed to in writing,                      -->
<!-- software distributed under the License is distributed on an "AS IS" BASIS,      -->
<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.        -->
<!-- See the License for the specific language governing permissions and limitations -->
<!-- under the License.                                                              -->

<features xmlns="http://karaf.apache.org/xmlns/features/v1.4.0" name="ukelonn.bundle.test.db">
    <feature name="ukelonn-db-postgresql">
        <capability>osgi.service;effective:=active;objectClass=org.osgi.service.jdbc.DataSourceFactory</capability>
        <feature>scr</feature>
        <feature>transaction-api</feature>
        <feature>pax-jdbc-spec</feature>
    </feature>
</features>

Add workaround for PostgreSQL JDBC driver not providing capability for DataSourceFactory.
Add workaround for PostgreSQL JDBC driver not providing capability for DataSourceFactory.

Adding a capability to the feature "nulls out" the capability
requirement added by the maven-bundle-plugin when using a DS component
with an @Activate method.
