>>>>> Francois Papon <francois.pa...@openobject.fr>:

> Hi Steinar,
> I think you have to add the karaf-services-maven-plugin in your build:

> https://github.com/apache/karaf/blob/2bc547f5e1a8a681333d40aa291ac3cf615c1d2f/examples/karaf-command-example/karaf-command-example-command/pom.xml#L51

Thanks Francois and JB!

I added a config in the <pluginManagement> of the top pom, and
referenced the plugin in <plugins> of the pom of the maven module
building the bundle containing the command
 
https://github.com/steinarb/ukelonn/commit/2210080855cb199d8b0dae11fe9bbf8a0fd2a104

I rebuilt the app, and then the ukelonn:release-liquibase-lock command
was available in the karaf console after installing the ukelonn app:
 karaf@root()> feature:repo-add 
mvn:no.priv.bang.ukelonn/karaf/LATEST/xml/features
 Adding feature url mvn:no.priv.bang.ukelonn/karaf/LATEST/xml/features
 karaf@root()> feature:install ukelonn-with-derby
 karaf@root()> ukelonn:release-liquibase-lock
 Forcibly unlocked the Liquibase changelog lock
 karaf@root()>



Reply via email to