The version of derby provided by pax-jdbc is, at the time of writing, 6 years old.
The reason is that the pax-jdbc project wishes to maintain java8 compatibility.
This project will provide an apache karaf feature to load a DataSourceFactory for embedded Derby
Date | Version | Comment |
---|---|---|
To install this feature:
- start karaf and give the following commands to the karaf console:
feature:repo-add mvn:no.priv.bang.karaf.derby/embedded-derby-karaf-feature/1.0.0-SNAPSHOT/xml/features feature:install embedded-derby-karaf-feature
After this, the liquibase Java API is available to your OSGi applications and the liquibase logging will go to the karaf log.
To use liquibase from your own, manually edited, karaf feature, include the feature’s feature repository and depend on the liquibase-core feature:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.4.0" name="ukelonn.bundle.db.liquibase">
<repository>mvn:no.priv.bang.karaf.derby/embedded-derby-karaf-feature/1.0.0-SNAPSHOT/xml/features</repository>
<feature name="ukelonn-db-liquibase">
<feature>embedded-derby-karaf-feature</feature>
</feature>
</features>
If you generate your karaf feature repository using the karaf-maven-plugin, you can include the liquibase-core feature into your generated feature repository, by adding this dependency to the maven project building the feature repository:
<dependency>
<groupId>no.priv.bang.karaf.derby</groupId>
<artifactId>embedded-derby-karaf-feature</artifactId>
<version>1.0.0-SNAPSHOT</version>
<type>xml</type>
<classifier>features</classifier>
</dependency>
This maven project is licensed with the Apache v 2.0 license.
The details of the license can be found in the LICENSE file.