I tried to add the toaster example (with slight modifications) to a ODL distribution, but it failed to install from local maven repo, it said it was unable to execute the load command.
Steps to reproduce:
Download & install the toaster sample.
git clone -b stable/oxygen https://github.com/opendaylight/controller.git cd ./controller/opendaylight/md-sal/samples mvn clean install -DskipTests -Dcheckstyle.skip
Download OpenDayLight Oxygen-SR3, then edit some configs:
Append local maven repository in org.ops4j.pax.url.mvn.cfg
org.ops4j.pax.url.mvn.defaultRepositories = [...],\ file:${user.home}/.m2/repository@id=local-repo@snapshots
Add toaster provider and consumer to the feature 63b7c6a7-e4db-407d-84a0-4fa24f1ae888
<!-- I changed the default 1.7.4-SNAPSHOT version to 10.0.0-SNAPSHOT for comprehension --> <bundle>mvn:org.opendaylight.controller.samples/sample-toaster-provider/10.0.0-SNAPSHOT</bundle> <bundle>mvn:org.opendaylight.controller.samples/sample-toaster-consumer/10.0.0-SNAPSHOT</bundle>
Run karaf to make sure the toaster is installed. Unfortunately they're nowhere to be found, and no warnings or errors produced in karaf.log
./bin/karaf feature:list | grep toaster
So I tried to add via the CLI, but it returned an error:
feature:repo-add mvn:org.opendaylight.controller.samples/sample-toaster-provider/10.0.0-SNAPSHOT
Adding feature url mvn:org.opendaylight.controller.samples/sample-toaster-provider/10.0.0-SNAPSHOT
[Fatal Error] :1:1: Content is not allowed in prolog.
Error executing command: Unable to load mvn:org.opendaylight.controller.samples/sample-toaster-provider/10.0.0-SNAPSHOT : mvn:org.opendaylight.controller.samples/sample-toaster-provider/10.0.0-SNAPSHOT
Full errors at http://pasted.co/f5ddf03f