Hi all
(In continuation to my previous emails)
To understand ODL project creation for specific versions and dependencies
in ODL, I am building a simple project in Boron (clean slate and all based
on Boron Stable), which has Netconf extra to what Archetype provides to
start with, it compiles fully, but when trying to install my project bundle
inside ODL am getting this error:


*Error executing command: Can't install feature odl-hello_boron/0.0.0:  *

*Could not start bundle
mvn:org.opendaylight.hello_boron/hello_boron-impl/0.1.0-SNAPSHOT in
feature(s) odl-hello_boron-0.1.0-SNAPSHOT: The bundle
"org.opendaylight.hello_boron.impl_0.1.0.SNAPSHOT [345]" could not be
resolved. Reason: Missing Constraint: Import-Package:
org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.node.topology.rev150114;
version="[1.6.0,2.0.0)"*

I took the steps below to make sure im using right versions and injecting
and registering right classes:



*1 - using this m2/repo for boron:*

https://raw.githubusercontent.com/opendaylight/odlparent/stable/boron/settings.xml
> ~/.m2/settings.xml



*2- My features.pom has this versionsing:*

<controller.mdsal.version>1.4.0-Boron</controller.mdsal.version>

<mdsal.model.version>0.9.0-Boron</mdsal.model.version>

 <mdsal.version>1.4.0-Boron</mdsal.version>

<restconf.version>1.4.0-Boron</restconf.version>

<yangtools.version>1.0.0-Boron</yangtools.version>


<dlux.version>0.4.0-Boron</dlux.version>


          <netconf.version>1.1.0-Boron</netconf.version>

*3-  And this is features.xml*

<features name="odl-hello_boron-${project.version}" xmlns="
http://karaf.apache.org/xmlns/features/v1.2.0";

  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

  xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.2.0
http://karaf.apache.org/xmlns/features/v1.2.0";>

  <repository>
mvn:org.opendaylight.yangtools/features-yangtools/{{VERSION}}/xml/features
</repository>

  <repository>
mvn:org.opendaylight.controller/features-mdsal/{{VERSION}}/xml/features
</repository>

  <repository>
mvn:org.opendaylight.mdsal.model/features-mdsal-model/{{VERSION}}/xml/features
</repository>

  <repository>
mvn:org.opendaylight.netconf/features-restconf/{{VERSION}}/xml/features
</repository>

  <repository>
mvn:org.opendaylight.dlux/features-dlux/{{VERSION}}/xml/features
</repository>


  <repository>
mvn:org.opendaylight.netconf/features-netconf-connector/{{VERSION}}/xml/features
</repository>

  <repository>
mvn:org.opendaylight.netconf/features-netconf/{{VERSION}}/xml/features
</repository>


  <feature name='odl-hello_boron-api' version='${project.version}'
description='OpenDaylight :: hello_boron :: api'>

    <feature version='${mdsal.model.version}'>odl-mdsal-models</feature>

    <bundle>mvn:org.opendaylight.hello_boron/hello_boron-api/{{VERSION}}
</bundle>

  </feature>

  <feature name='odl-hello_boron' version='${project.version}'
description='OpenDaylight
:: hello_boron'>

    <feature version='${mdsal.version}'>odl-mdsal-broker</feature>

    <feature version='${project.version}'>odl-hello_boron-api</feature>

    <feature version='${controller.mdsal.version}'>odl-netconf-mdsal
</feature>


    <feature version='${netconf.version}'>odl-netconf-connector-all
</feature>

    <!-- <feature version='${netconf.version}'>odl-netconf-all</feature> -->


    <bundle>mvn:org.opendaylight.hello_boron/hello_boron-impl/{{VERSION}}
</bundle>

  </feature>

  <feature name='odl-hello_boron-rest' version='${project.version}'
description='OpenDaylight :: hello_boron :: REST'>

    <feature version="${project.version}">odl-hello_boron</feature>

    <feature version="${restconf.version}">odl-restconf-all</feature>

  </feature>

  <feature name='odl-hello_boron-ui' version='${project.version}'
description='OpenDaylight :: hello_boron :: UI'>

    <feature version="${project.version}">odl-hello_boron-rest</feature>

    <feature version="${restconf.version}">odl-mdsal-apidocs</feature>

    <feature version="${mdsal.version}">odl-mdsal-xsql</feature>

    <feature version="${dlux.version}">odl-dlux-yangui</feature>

    <feature version="${dlux.version}">odl-dlux-core</feature>

  </feature>

  <feature name='odl-hello_boron-cli' version='${project.version}'
description='OpenDaylight :: hello_boron :: CLI'>

    <feature version="${project.version}">odl-hello_boron</feature>

    <bundle>mvn:org.opendaylight.hello_boron/hello_boron-cli/{{VERSION}}
</bundle>

*4- Java registration in the constructor:*

    public Hello_boronProvider(final DataBroker dataBroker,
RpcProviderRegistry rpcProviderRegistry) {

        this.dataBroker = dataBroker;

        this.rpcProviderRegistry = rpcProviderRegistry;

    }


*5- RPC injection blueprint:*


<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";

  xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0";

  odl:use-default-for-reference-types="true">


  <reference id="dataBroker"

    interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"

    odl:type="default" />


  <reference id="dataBroker"

    interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"

    odl:type="default" />


  <reference id="rpcRegistry"

    interface=
"org.opendaylight.controller.sal.binding.api.RpcProviderRegistry"

    odl:type="default" />


  <bean id="provider"

    class="org.opendaylight.hello_boron.impl.Hello_boronProvider"

    init-method="init" destroy-method="close">

    <argument ref="dataBroker" />

    <argument ref="rpcRegistry" />

  </bean>

</blueprint>

*6- This is the repo list:*

standard-3.0.7                     |
mvn:org.apache.karaf.features/standard/3.0.7/xml/features


odl-protocol-framework-0.8.0-Boron |
mvn:org.opendaylight.controller/features-protocol-framework/0.8.0-Boron/xml/features

odl-bgpcep-0.6.0-Boron             |
mvn:org.opendaylight.bgpcep/features-bgp/0.6.0-Boron/xml/features


odl-netconf-1.1.0-Boron            |
mvn:org.opendaylight.netconf/features-netconf/1.1.0-Boron/xml/features


odl-controller-1.1.0-Boron         |
mvn:org.opendaylight.netconf/features-netconf-connector/1.1.0-Boron/xml/features


odl-hello_boron-0.1.0-SNAPSHOT     |
mvn:org.opendaylight.hello_boron/hello_boron-features/0.1.0-SNAPSHOT/xml/features


org.ops4j.pax.web-3.2.9            |
mvn:org.ops4j.pax.web/pax-web-features/3.2.9/xml/features


spring-3.0.7                       |
mvn:org.apache.karaf.features/spring/3.0.7/xml/features


odlparent-1.7.0-Boron              |
mvn:org.opendaylight.odlparent/features-odlparent/1.7.0-Boron/xml/features


odl-mdsal-models-0.9.0-Boron       |
mvn:org.opendaylight.mdsal.model/features-mdsal-model/0.9.0-Boron/xml/features


odl-dlux-0.4.0-Boron               |
mvn:org.opendaylight.dlux/features-dlux/0.4.0-Boron/xml/features


odl-config-persister-0.5.0-Boron   |
mvn:org.opendaylight.controller/features-config-persister/0.5.0-Boron/xml/features


org.ops4j.pax.cdi-0.11.0           |
mvn:org.ops4j.pax.cdi/pax-cdi-features/0.11.0/xml/features


odl-aaa-0.4.0-Boron                |
mvn:org.opendaylight.aaa/features-aaa/0.4.0-Boron/xml/features


odl-yangtools-1.0.0-Boron          |
mvn:org.opendaylight.yangtools/features-yangtools/1.0.0-Boron/xml/features


odl-config-persister-0.5.0-Boron   |
mvn:org.opendaylight.controller/features-config-netty/0.5.0-Boron/xml/features


enterprise-3.0.7                   |
mvn:org.apache.karaf.features/enterprise/3.0.7/xml/features


odl-yangtools-2.1.0-Boron          |
mvn:org.opendaylight.mdsal/features-mdsal/2.1.0-Boron/xml/features


odl-config-0.5.0-Boron             |
mvn:org.opendaylight.controller/features-config/0.5.0-Boron/xml/features


odl-aaa-0.4.0-Boron                |
mvn:org.opendaylight.aaa/features-aaa-shiro/0.4.0-Boron/xml/features


odl-controller-1.4.0-Boron         |
mvn:org.opendaylight.netconf/features-restconf/1.4.0-Boron/xml/features


odl-controller-1.7.0-Boron         |
mvn:org.opendaylight.odlparent/features-akka/1.7.0-Boron/xml/features


odl-aaa-0.4.0-Boron                |
mvn:org.opendaylight.aaa/features-aaa-api/0.4.0-Boron/xml/features


odl-mdsal-1.4.0-Boron              |
mvn:org.opendaylight.controller/features-mdsal/1.4.0-Boron/xml/features

Would appreciate you point me to right place to debug



Thanks

Bijan
_______________________________________________
controller-dev mailing list
controller-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/controller-dev

Reply via email to