Ask Your Question
0

Hello World Project

asked 2016-07-05 10:25:22 -0700

anonymous user

Anonymous

Hi, while trying to add dlux feature to my Hello word Project , I am getting this error.

Please help.

opendaylight-user@root>feature:install odl-dlux-all Error executing command: No feature matching odl-dlux-all/0.0.0

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2016-07-05 22:13:39 -0700

karthik330 gravatar image

updated 2016-07-11 06:32:53 -0700

Hi ,

Updated :

I tried , and i checked the features/pom.xml and , features.xml . they have already mentioned the dependency of dlux project. After launching karaf i simply installed dlux. its working.

opendaylight-user@root>feature:install odl-dlux-all

I attached my pom and features.xml files C:\fakepath\pom.png. have a look. (After download both the files C:\fakepath\features.png Plz change the extension from .png to xml) right click ->save link as -> Download and change extention and see (Its not allowing me to upload xml file)

edit flag offensive delete publish link more

Comments

Hey, I want to add dlux feature in the Hello world project. I followed the exact same steps but its not working for me. The error is : Bad artifact coordinates org.opendaylight.dlux:features-dlux:, expected format is <groupid>:<artifactid>[:<extension>[:<classifier>]]:<version>

ahuja ( 2016-07-06 13:31:19 -0700 )edit

There is a simple mistake in <dependency> starting tag. I missed ">" symbol . It may be the reason.try this

karthik330 ( 2016-07-07 00:19:20 -0700 )edit

Also, can you please let me know what is the use of integration-distribution?

ahuja ( 2016-07-07 06:24:52 -0700 )edit

https://github.com/opendaylight/integration-distribution Mirror of ODL where whole bundles present.

karthik330 ( 2016-07-07 07:30:44 -0700 )edit

Thanks Karthik it worked I removed the ~/.m2/repository, rebuilt and it worked. Your message "Plz make sure that mentioned version of dlux is available at m2/repository/org/opendaylight/dlux/features-dlux" was helpful. The version I was trying to download was not there in the features-dlux location

ahuja ( 2016-07-11 13:35:03 -0700 )edit
0

answered 2016-07-07 06:56:05 -0700

ahuja gravatar image

updated 2016-07-09 14:02:46 -0700

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>
edit flag offensive delete publish link more

Comments

Hi ahuja, its already available in the features/pom.xml, check it out ; Im sorry just now looked! Let me know if it is working

karthik330 ( 2016-07-07 07:52:33 -0700 )edit

@ahuja I tried , after launching karaf all the hello features are installed at the boot time itself (in your case its not installed) , and odl-dlux-all is available and i am able to install it!. You build your project again and try

karthik330 ( 2016-07-10 23:59:37 -0700 )edit

Plz make sure that mentioned version of dlux is available at .m2/repository/org/opendaylight/dlux/features-dlux ; it has to work for you when it is working (odl-dlux-all)!. Plz let me know

karthik330 ( 2016-07-11 06:38:07 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-07-05 10:25:22 -0700

Seen: 154 times

Last updated: Jul 11 '16