Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

Hi Karthik,

Thanks for your immediate reply. I think I have not made any mistake here. My confgiguration is:

Pom.xml:

<dependency>
  <groupId>org.opendaylight.dlux</groupId>
  <artifactId>features-dlux</artifactId>
  <classifier>features</classifier>
  <version>0.4.0-SNAPSHOT</version>
  <type>xml</type>
</dependency>

Features.xml:

<repository>mvn:org.opendaylight.dlux/features-dlux/${feature.dlux.version}/xml/features</repository>

Hi Karthik,

Thanks for your immediate reply. I think I have not made any mistake here. My confgiguration is:

Pom.xml:

<dependency>
  <groupId>org.opendaylight.dlux</groupId>
  <artifactId>features-dlux</artifactId>
  <classifier>features</classifier>
  <version>0.4.0-SNAPSHOT</version>
  <type>xml</type>
</dependency>

Features.xml:

<repository>mvn:org.opendaylight.dlux/features-dlux/${feature.dlux.version}/xml/features</repository>

//was not able to add this as reply

Hi Karthik,karthik,

Thanks for your immediate reply. I think I have not made any mistake here. My confgiguration is:removed all the changes and implemented just one change. Changed yangui to all. The build was success. however, i still cant see dlux.

Pom.xml:

<dependency>
  <groupId>org.opendaylight.dlux</groupId>
  <artifactId>features-dlux</artifactId>
  <classifier>features</classifier>
  <version>0.4.0-SNAPSHOT</version>
  <type>xml</type>
</dependency>

Features.xml:My Output:

<repository>mvn:org.opendaylight.dlux/features-dlux/${feature.dlux.version}/xml/features</repository>opendaylight-user@root>feature:info odl-ahuja Feature odl-ahuja 1.0-SNAPSHOT Description: OpenDaylight :: ahuja Feature has no configuration Feature configuration files: etc/opendaylight/karaf/ahuja.xml Feature depends on: odl-mdsal-broker 1.2.5-SNAPSHOT odl-ahuja-api 1.0-SNAPSHOT Feature contains followed bundles: mvn:org.nokia.ahuja/ahuja-impl/1.0-SNAPSHOT Feature has no conditionals.

//was The output as per the tutorial should also include odl-ahuja-rest and odl-dlux-yangui(or all) // in my case these 2 are not able to add this as replyreflecting.

Also, <feature version="${dlux.version}">odl-dlux-yangui</feature> in 'odl-ahuja-ui' was not present in my features.xml file. I included it myself.

Thanks!

Hi karthik,

Its still not working.

I removed all the changes and implemented just one change. Changed yangui to all. The build was success. however, i still cant see dlux.

My Output:

opendaylight-user@root>feature:info odl-ahuja Feature odl-ahuja 1.0-SNAPSHOT Description: OpenDaylight :: ahuja Feature has no configuration Feature configuration files: etc/opendaylight/karaf/ahuja.xml Feature depends on: odl-mdsal-broker 1.2.5-SNAPSHOT odl-ahuja-api 1.0-SNAPSHOT Feature contains followed bundles: mvn:org.nokia.ahuja/ahuja-impl/1.0-SNAPSHOT Feature has no conditionals.

The output as per the tutorial should also include odl-ahuja-rest and odl-dlux-yangui(or all) // in my case these 2 are not reflecting.

Also, <feature version="${dlux.version}">odl-dlux-yangui</feature> in 'odl-ahuja-ui' was not present in my features.xml file. I included it myself.

Thanks!

Hi karthik,

Its still not working.

I removed all was able to build the changes and implemented just one change. Changed yangui to all. The build was success. however, i still cant see dlux.project successfully after these changes,

  • pom.xml:
 <dependency>
     <groupId>org.opendaylight.dlux</groupId>
      <artifactId>features-dlux</artifactId>
      <classifier>features</classifier>
      <version>${dlux.version}</version>
      <type>xml</type>
      <scope>runtime</scope>
    </dependency>
  • features.xml:

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

My odl-hello-ui in features.xml looks like:

 <feature name='odl-hello-ui' version='${project.version}' description='OpenDaylight :: hello :: UI'>
    <feature version="${project.version}">odl-hello-rest</feature>
    <feature version="${mdsal.version}">odl-mdsal-apidocs</feature>
    <feature version="${mdsal.version}">odl-mdsal-xsql</feature>
    <feature version="${dlux.version}">odl-dlux-yangui</feature>
  </feature>

Output:

> opendaylight-user@root>log:display
> Command not found: log:display
> opendaylight-user@root>

opendaylight-user@root>feature:info odl-ahuja Feature odl-ahuja 1.0-SNAPSHOT Description:

  > opendaylight-user@root>feature:list |
    > grep hello odl-hello-api              
    > | 1.0-SNAPSHOT     |           |
    > odl-hello-1.0-SNAPSHOT              |
    > OpenDaylight :: ahuja
Feature has no configuration
Feature configuration files:
  etc/opendaylight/karaf/ahuja.xml
Feature depends on:
  odl-mdsal-broker 1.2.5-SNAPSHOT
  odl-ahuja-api 1.0-SNAPSHOT
Feature contains followed bundles:
  mvn:org.nokia.ahuja/ahuja-impl/1.0-SNAPSHOT
Feature has no conditionals.hello :: api    
    > odl-hello                         |
    > 1.0-SNAPSHOT     |           | odl-hello-1.0-SNAPSHOT              |
    > OpenDaylight :: hello           
    > odl-hello-rest                    |
    > 1.0-SNAPSHOT     |           | odl-hello-1.0-SNAPSHOT              |
    > OpenDaylight :: hello :: REST   
    > odl-hello-ui                      |
    > 1.0-SNAPSHOT     |           | odl-hello-1.0-SNAPSHOT              |
    > OpenDaylight :: hello :: UI     
    > opendaylight-user@root>

>

The output as per the tutorial should also include odl-ahuja-rest and odl-dlux-yangui(or all) //

opendaylight-user@root>feature:install
    > odl-hello-api Error executing command:
    > Error resolving artifact
    > org.opendaylight.yangtools:features-yangtools:xml:features:1.0.0-SNAPSHOT:
    > Could not find artifact
    > org.opendaylight.yangtools:features-yangtools:xml:features:1.0.0-SNAPSHOT in my case these 2 are not reflecting. 

Also, <feature version="${dlux.version}">odl-dlux-yangui</feature> in 'odl-ahuja-ui' was not present in my features.xml file. I included it myself.

Thanks!

defaultlocal > (file:/opt/testing/project/test/hello/karaf/target/assembly/system/) > opendaylight-user@root>

I was able to build the project successfully after these changes,

  • pom.xml:
 <dependency>
     <groupId>org.opendaylight.dlux</groupId>
      <artifactId>features-dlux</artifactId>
      <classifier>features</classifier>
      <version>${dlux.version}</version>
      <type>xml</type>
      <scope>runtime</scope>
    </dependency>
  • features.xml:

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

My odl-hello-ui in features.xml looks like:

 <feature name='odl-hello-ui' version='${project.version}' description='OpenDaylight :: hello :: UI'>
    <feature version="${project.version}">odl-hello-rest</feature>
    <feature version="${mdsal.version}">odl-mdsal-apidocs</feature>
    <feature version="${mdsal.version}">odl-mdsal-xsql</feature>
    <feature version="${dlux.version}">odl-dlux-yangui</feature>
  </feature>

However, nothing worked after that.

Output:

> opendaylight-user@root>log:display
> Command not found: log:display
> opendaylight-user@root>

  > opendaylight-user@root>feature:list |
    > grep hello odl-hello-api              
    > | 1.0-SNAPSHOT     |           |
    > odl-hello-1.0-SNAPSHOT              |
    > OpenDaylight :: hello :: api    
    > odl-hello                         |
    > 1.0-SNAPSHOT     |           | odl-hello-1.0-SNAPSHOT              |
    > OpenDaylight :: hello           
    > odl-hello-rest                    |
    > 1.0-SNAPSHOT     |           | odl-hello-1.0-SNAPSHOT              |
    > OpenDaylight :: hello :: REST   
    > odl-hello-ui                      |
    > 1.0-SNAPSHOT     |           | odl-hello-1.0-SNAPSHOT              |
    > OpenDaylight :: hello :: UI     
    > opendaylight-user@root>

>

opendaylight-user@root>feature:install
    > odl-hello-api Error executing command:
    > Error resolving artifact
    > org.opendaylight.yangtools:features-yangtools:xml:features:1.0.0-SNAPSHOT:
    > Could not find artifact
    > org.opendaylight.yangtools:features-yangtools:xml:features:1.0.0-SNAPSHOT in defaultlocal
    > (file:/opt/testing/project/test/hello/karaf/target/assembly/system/)
    > opendaylight-user@root>