Skip to content

Instantly share code, notes, and snippets.

@steinarb
Created July 26, 2020 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steinarb/8e39910a0ef16068016c4dde4ff3cc95 to your computer and use it in GitHub Desktop.
Save steinarb/8e39910a0ef16068016c4dde4ff3cc95 to your computer and use it in GitHub Desktop.
Feature repository for liquibase sample application
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.6.0" name="handlereg.db.liquibase.test">
<repository>mvn:no.priv.bang.karaf/liquibase-core-karaf/3.8.1-SNAPSHOT/xml/features</repository>
<feature name="liquibase-sample-hook" description="Sample bundle for liquibase" version="1.0.0.SNAPSHOT">
<feature>scr</feature>
<feature>pax-jdbc-derby</feature>
<feature version="3.10.1" prerequisite="false" dependency="false">liquibase-core</feature>
<bundle start-level="80">mvn:no.priv.bang.karaf.liquibase/liquibase.sample/1.0.0-SNAPSHOT</bundle>
</feature>
<feature name="liquibase-sample" description="liquibase-sample DataSource" version="1.0.0.SNAPSHOT">
<config name="org.ops4j.datasource-oldalbum-test" append="false" external="false" override="false">
osgi.jdbc.driver.name=derby
dataSourceName=jdbc/liquibasesample
url=jdbc:derby:memory:liquibasesample;create=true
ops4j.preHook=liquibasesampledb
</config>
<feature>liquibase-sample-hook</feature>
<feature>pax-jdbc-config</feature>
<capability>
osgi.service;objectClass=javax.sql.DataSource;effective:=active;osgi.jndi.service.name=jdbc/oldalbum
</capability>
</feature>
</features>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment