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]

How to install feature to karaf distribution

I am trying to write sample feature and want to deploy the feature to odl karaf SR3 distribution.

I followed the following wiki for the writing the feature: https://wiki.opendaylight.org/view/OpenDaylightController:MD-SAL:ArchetypeTutorial

but I am getting the error on deploying the feature.

opendaylight-user@root>feature:install task-1.0-SNAPSHOT
Error executing command: No feature named 'task-1.0-SNAPSHOT' with version '0.0.0' available

Following is the feature file:

<?xml version="1.0" encoding="UTF-8"?>

<features name="task-1.0-SNAPSHOT" 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">

    <feature name='odl-task-provider' version='1.0-SNAPSHOT'>
        <feature version='0.7.0-SNAPSHOT'>odl-yangtools-common</feature>
        <feature version='0.7.0-SNAPSHOT'>odl-yangtools-binding</feature>
        <feature version='1.2.0-SNAPSHOT'>odl-mdsal-broker</feature>
        <bundle>mvn:com.example.yangapp/yang-demo-app-model/1.0-SNAPSHOT</bundle>
        <bundle>mvn:com.example.yangapp/yang-demo-app-provider/1.0-SNAPSHOT</bundle>
        <configfile finalname="etc/opendaylight/karaf/05-task-provider-config.xml">mvn:com.example.yangapp/yang-demo-app-provider/1.0-SNAPSHOT/xml/config</configfile>
    </feature>
    <feature name='odl-task-consumer' version='1.0-SNAPSHOT'>
        <feature>odl-task-provider</feature>
        <bundle>mvn:com.example.yangapp/yang-demo-app-consumer/1.0-SNAPSHOT</bundle>
        <configfile finalname="etc/opendaylight/karaf/06-task-consumer-config.xml">mvn:com.example.yangapp/yang-demo-app-consumer/1.0-SNAPSHOT/xml/config</configfile>
    </feature>
    <feature name='odl-task-web' version='1.0-SNAPSHOT'>
        <feature>http</feature>
        <feature>odl-task-provider</feature>
        <feature version='1.2.0-SNAPSHOT'>odl-restconf-noauth</feature>
        <bundle>mvn:com.example.yangapp/yang-demo-app-web/1.0-SNAPSHOT</bundle>
    </feature>
</features>

I have also tried to install the feature 'odl-task-provider' but again I am getting the error on installtion.

opendaylight-user@root>feature:install odl-task-provider
Error executing command: No feature named 'odl-yangtools-common' with version '0.7.0-SNAPSHOT' available

I have added this feature to ODL by following command:

opendaylight-user@root>feature:repo-add file:/Users/subh/.m2/repository/com/example/yangapp/features-yang-demo-app/1.0-SNAPSHOT/features-yang-demo-app-1.0-SNAPSHOT-features.xml

Please help me to understand the correct way of deploying the feature to ODL karaf distribution. Please correct me if the there is any mistake in adding the feature to ODL karaf distribution.

How to install feature to Error on installing feature to odl karaf distributionSR3 distribution.

I am trying to write sample feature and want to deploy the feature to odl karaf SR3 distribution.

I followed the following wiki for the writing the feature: https://wiki.opendaylight.org/view/OpenDaylightController:MD-SAL:ArchetypeTutorial

but I am getting the error on deploying the feature.

opendaylight-user@root>feature:install task-1.0-SNAPSHOT
Error executing command: No feature named 'task-1.0-SNAPSHOT' with version '0.0.0' available

Following is the feature file:

<?xml version="1.0" encoding="UTF-8"?>

<features name="task-1.0-SNAPSHOT" 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">

    <feature name='odl-task-provider' version='1.0-SNAPSHOT'>
        <feature version='0.7.0-SNAPSHOT'>odl-yangtools-common</feature>
        <feature version='0.7.0-SNAPSHOT'>odl-yangtools-binding</feature>
        <feature version='1.2.0-SNAPSHOT'>odl-mdsal-broker</feature>
        <bundle>mvn:com.example.yangapp/yang-demo-app-model/1.0-SNAPSHOT</bundle>
        <bundle>mvn:com.example.yangapp/yang-demo-app-provider/1.0-SNAPSHOT</bundle>
        <configfile finalname="etc/opendaylight/karaf/05-task-provider-config.xml">mvn:com.example.yangapp/yang-demo-app-provider/1.0-SNAPSHOT/xml/config</configfile>
    </feature>
    <feature name='odl-task-consumer' version='1.0-SNAPSHOT'>
        <feature>odl-task-provider</feature>
        <bundle>mvn:com.example.yangapp/yang-demo-app-consumer/1.0-SNAPSHOT</bundle>
        <configfile finalname="etc/opendaylight/karaf/06-task-consumer-config.xml">mvn:com.example.yangapp/yang-demo-app-consumer/1.0-SNAPSHOT/xml/config</configfile>
    </feature>
    <feature name='odl-task-web' version='1.0-SNAPSHOT'>
        <feature>http</feature>
        <feature>odl-task-provider</feature>
        <feature version='1.2.0-SNAPSHOT'>odl-restconf-noauth</feature>
        <bundle>mvn:com.example.yangapp/yang-demo-app-web/1.0-SNAPSHOT</bundle>
    </feature>
</features>

I have also tried to install the feature 'odl-task-provider' but again I am getting the error on installtion.

opendaylight-user@root>feature:install odl-task-provider
Error executing command: No feature named 'odl-yangtools-common' with version '0.7.0-SNAPSHOT' available

I have added this feature to ODL by following command:

opendaylight-user@root>feature:repo-add file:/Users/subh/.m2/repository/com/example/yangapp/features-yang-demo-app/1.0-SNAPSHOT/features-yang-demo-app-1.0-SNAPSHOT-features.xml

Please help me to understand the correct way of deploying the feature to ODL karaf distribution. Please correct me if the there is any mistake in adding the feature to ODL karaf distribution.

Error on installing feature to odl karaf SR3 distribution.

I am trying to write sample feature and want to deploy the feature to odl karaf SR3 distribution.

I followed the following wiki for the writing the feature: https://wiki.opendaylight.org/view/OpenDaylightController:MD-SAL:ArchetypeTutorial

but I am getting the error on deploying the feature.

opendaylight-user@root>feature:install task-1.0-SNAPSHOT
Error executing command: No feature named 'task-1.0-SNAPSHOT' with version '0.0.0' available

Following is the feature file:

<?xml version="1.0" encoding="UTF-8"?>

<features name="task-1.0-SNAPSHOT" 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">

    <feature name='odl-task-provider' version='1.0-SNAPSHOT'>
        <feature version='0.7.0-SNAPSHOT'>odl-yangtools-common</feature>
        <feature version='0.7.0-SNAPSHOT'>odl-yangtools-binding</feature>
        <feature version='1.2.0-SNAPSHOT'>odl-mdsal-broker</feature>
        <bundle>mvn:com.example.yangapp/yang-demo-app-model/1.0-SNAPSHOT</bundle>
        <bundle>mvn:com.example.yangapp/yang-demo-app-provider/1.0-SNAPSHOT</bundle>
        <configfile finalname="etc/opendaylight/karaf/05-task-provider-config.xml">mvn:com.example.yangapp/yang-demo-app-provider/1.0-SNAPSHOT/xml/config</configfile>
    </feature>
    <feature name='odl-task-consumer' version='1.0-SNAPSHOT'>
        <feature>odl-task-provider</feature>
        <bundle>mvn:com.example.yangapp/yang-demo-app-consumer/1.0-SNAPSHOT</bundle>
        <configfile finalname="etc/opendaylight/karaf/06-task-consumer-config.xml">mvn:com.example.yangapp/yang-demo-app-consumer/1.0-SNAPSHOT/xml/config</configfile>
    </feature>
    <feature name='odl-task-web' version='1.0-SNAPSHOT'>
        <feature>http</feature>
        <feature>odl-task-provider</feature>
        <feature version='1.2.0-SNAPSHOT'>odl-restconf-noauth</feature>
        <bundle>mvn:com.example.yangapp/yang-demo-app-web/1.0-SNAPSHOT</bundle>
    </feature>
</features>

I have also tried to install the feature 'odl-task-provider' but again I am getting the error on installtion.

opendaylight-user@root>feature:install odl-task-provider
Error executing command: No feature named 'odl-yangtools-common' with version '0.7.0-SNAPSHOT' available

I have added this feature to ODL by following command:

opendaylight-user@root>feature:repo-add file:/Users/subh/.m2/repository/com/example/yangapp/features-yang-demo-app/1.0-SNAPSHOT/features-yang-demo-app-1.0-SNAPSHOT-features.xml

Please help me to understand the correct way of deploying the feature to ODL karaf distribution. Please correct me if the there is any mistake in adding the feature to ODL karaf distribution.

Update: I found out that the correct way of deploying of feature is:

  1. add the feature repo to the karaf:

    opendaylight-user>feature:repo-add mvn:<groupid>/features-<artifactid>/<version>/xml/features

  2. install the feature to the karaf:

    opendaylight-user> feature:install <feature-name>

But still deploying my feature I am not able to correctly deploy I am getting the same error. I tried to get the list of dependency:

opendaylight-user@root>feature:info odl-task-provider
Feature odl-task-provider 1.0-SNAPSHOT
Feature has no configuration
Feature configuration files:
  etc/opendaylight/karaf/05-task-provider-config.xml
Feature depends on:
  odl-yangtools-common 0.7.0-SNAPSHOT
  odl-yangtools-binding 0.7.0-SNAPSHOT
  odl-mdsal-broker 1.2.0-SNAPSHOT
Feature contains followed bundles:
  mvn:com.example.yangapp/yang-demo-app-model/1.0-SNAPSHOT
  mvn:com.example.yangapp/yang-demo-app-provider/1.0-SNAPSHOT
Feature has no conditionals.

opendaylight-user@root>feature:info odl-yangtools-common
Feature odl-yangtools-common 0.8.0-SNAPSHOT
Description:
  OpenDaylight :: Yangtools :: Common
Feature has no configuration
Feature has no configuration files
Feature has no dependencies.
Feature contains followed bundles:
  mvn:com.google.guava/guava/18.0
  mvn:org.opendaylight.yangtools/concepts/0.8.0-SNAPSHOT
  mvn:org.opendaylight.yangtools/yang-common/0.8.0-SNAPSHOT
  mvn:org.opendaylight.yangtools/util/0.8.0-SNAPSHOT
  mvn:org.opendaylight.yangtools/object-cache-api/0.8.0-SNAPSHOT
  mvn:org.opendaylight.yangtools/object-cache-guava/0.8.0-SNAPSHOT
  mvn:org.opendaylight.yangtools/object-cache-noop/0.8.0-SNAPSHOT
  mvn:com.github.romix/java-concurrent-hash-trie-map/0.2.23
Feature has no conditionals.

So I think there is mismatch of available yang-tool-common version. Could you please suggest me for required change I need for the application deployment.

Error on installing feature to odl karaf SR3 distribution.

I am trying to write sample feature and want to deploy the feature to odl karaf SR3 distribution.

I followed the following wiki for the writing the feature: https://wiki.opendaylight.org/view/OpenDaylightController:MD-SAL:ArchetypeTutorial

but I am getting the error on deploying the feature.

opendaylight-user@root>feature:install task-1.0-SNAPSHOT
Error executing command: No feature named 'task-1.0-SNAPSHOT' with version '0.0.0' available

Following is the feature file:

<?xml version="1.0" encoding="UTF-8"?>

<features name="task-1.0-SNAPSHOT" 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">

    <feature name='odl-task-provider' version='1.0-SNAPSHOT'>
        <feature version='0.7.0-SNAPSHOT'>odl-yangtools-common</feature>
        <feature version='0.7.0-SNAPSHOT'>odl-yangtools-binding</feature>
        <feature version='1.2.0-SNAPSHOT'>odl-mdsal-broker</feature>
        <bundle>mvn:com.example.yangapp/yang-demo-app-model/1.0-SNAPSHOT</bundle>
        <bundle>mvn:com.example.yangapp/yang-demo-app-provider/1.0-SNAPSHOT</bundle>
        <configfile finalname="etc/opendaylight/karaf/05-task-provider-config.xml">mvn:com.example.yangapp/yang-demo-app-provider/1.0-SNAPSHOT/xml/config</configfile>
    </feature>
    <feature name='odl-task-consumer' version='1.0-SNAPSHOT'>
        <feature>odl-task-provider</feature>
        <bundle>mvn:com.example.yangapp/yang-demo-app-consumer/1.0-SNAPSHOT</bundle>
        <configfile finalname="etc/opendaylight/karaf/06-task-consumer-config.xml">mvn:com.example.yangapp/yang-demo-app-consumer/1.0-SNAPSHOT/xml/config</configfile>
    </feature>
    <feature name='odl-task-web' version='1.0-SNAPSHOT'>
        <feature>http</feature>
        <feature>odl-task-provider</feature>
        <feature version='1.2.0-SNAPSHOT'>odl-restconf-noauth</feature>
        <bundle>mvn:com.example.yangapp/yang-demo-app-web/1.0-SNAPSHOT</bundle>
    </feature>
</features>

I have also tried to install the feature 'odl-task-provider' but again I am getting the error on installtion.

opendaylight-user@root>feature:install odl-task-provider
Error executing command: No feature named 'odl-yangtools-common' with version '0.7.0-SNAPSHOT' available

I have added this feature to ODL by following command:

opendaylight-user@root>feature:repo-add file:/Users/subh/.m2/repository/com/example/yangapp/features-yang-demo-app/1.0-SNAPSHOT/features-yang-demo-app-1.0-SNAPSHOT-features.xml

Please help me to understand the correct way of deploying the feature to ODL karaf distribution. Please correct me if the there is any mistake in adding the feature to ODL karaf distribution.

Update: Update:

I found out that the correct way of deploying of feature is:

  1. add the feature repo to the karaf:

    opendaylight-user>feature:repo-add mvn:<groupid>/features-<artifactid>/<version>/xml/features

  2. install the feature to the karaf:

    opendaylight-user> feature:install <feature-name>

But still deploying my feature I am not able to correctly deploy I am getting the same error. I tried to get the list of dependency:

opendaylight-user@root>feature:info odl-task-provider
Feature odl-task-provider 1.0-SNAPSHOT
Feature has no configuration
Feature configuration files:
  etc/opendaylight/karaf/05-task-provider-config.xml
Feature depends on:
  odl-yangtools-common 0.7.0-SNAPSHOT
  odl-yangtools-binding 0.7.0-SNAPSHOT
  odl-mdsal-broker 1.2.0-SNAPSHOT
Feature contains followed bundles:
  mvn:com.example.yangapp/yang-demo-app-model/1.0-SNAPSHOT
  mvn:com.example.yangapp/yang-demo-app-provider/1.0-SNAPSHOT
Feature has no conditionals.

opendaylight-user@root>feature:info odl-yangtools-common
Feature odl-yangtools-common 0.8.0-SNAPSHOT
Description:
  OpenDaylight :: Yangtools :: Common
Feature has no configuration
Feature has no configuration files
Feature has no dependencies.
Feature contains followed bundles:
  mvn:com.google.guava/guava/18.0
  mvn:org.opendaylight.yangtools/concepts/0.8.0-SNAPSHOT
  mvn:org.opendaylight.yangtools/yang-common/0.8.0-SNAPSHOT
  mvn:org.opendaylight.yangtools/util/0.8.0-SNAPSHOT
  mvn:org.opendaylight.yangtools/object-cache-api/0.8.0-SNAPSHOT
  mvn:org.opendaylight.yangtools/object-cache-guava/0.8.0-SNAPSHOT
  mvn:org.opendaylight.yangtools/object-cache-noop/0.8.0-SNAPSHOT
  mvn:com.github.romix/java-concurrent-hash-trie-map/0.2.23
Feature has no conditionals.

So I think there is mismatch of available yang-tool-common version. Could you please suggest me for required change I need for the application deployment.

Error on installing feature to odl karaf SR3 distribution.

I am trying to write sample feature and want to deploy the feature to odl karaf SR3 distribution.

I followed the following wiki for the writing the feature: https://wiki.opendaylight.org/view/OpenDaylightController:MD-SAL:ArchetypeTutorial

but I am getting the error on deploying the feature.

opendaylight-user@root>feature:install task-1.0-SNAPSHOT
Error executing command: No feature named 'task-1.0-SNAPSHOT' with version '0.0.0' available

Following is the feature file:

<?xml version="1.0" encoding="UTF-8"?>

<features name="task-1.0-SNAPSHOT" 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">

    <feature name='odl-task-provider' version='1.0-SNAPSHOT'>
        <feature version='0.7.0-SNAPSHOT'>odl-yangtools-common</feature>
        <feature version='0.7.0-SNAPSHOT'>odl-yangtools-binding</feature>
        <feature version='1.2.0-SNAPSHOT'>odl-mdsal-broker</feature>
        <bundle>mvn:com.example.yangapp/yang-demo-app-model/1.0-SNAPSHOT</bundle>
        <bundle>mvn:com.example.yangapp/yang-demo-app-provider/1.0-SNAPSHOT</bundle>
        <configfile finalname="etc/opendaylight/karaf/05-task-provider-config.xml">mvn:com.example.yangapp/yang-demo-app-provider/1.0-SNAPSHOT/xml/config</configfile>
    </feature>
    <feature name='odl-task-consumer' version='1.0-SNAPSHOT'>
        <feature>odl-task-provider</feature>
        <bundle>mvn:com.example.yangapp/yang-demo-app-consumer/1.0-SNAPSHOT</bundle>
        <configfile finalname="etc/opendaylight/karaf/06-task-consumer-config.xml">mvn:com.example.yangapp/yang-demo-app-consumer/1.0-SNAPSHOT/xml/config</configfile>
    </feature>
    <feature name='odl-task-web' version='1.0-SNAPSHOT'>
        <feature>http</feature>
        <feature>odl-task-provider</feature>
        <feature version='1.2.0-SNAPSHOT'>odl-restconf-noauth</feature>
        <bundle>mvn:com.example.yangapp/yang-demo-app-web/1.0-SNAPSHOT</bundle>
    </feature>
</features>

I have also tried to install the feature 'odl-task-provider' but again I am getting the error on installtion.

opendaylight-user@root>feature:install odl-task-provider
Error executing command: No feature named 'odl-yangtools-common' with version '0.7.0-SNAPSHOT' available

I have added this feature to ODL by following command:

opendaylight-user@root>feature:repo-add file:/Users/subh/.m2/repository/com/example/yangapp/features-yang-demo-app/1.0-SNAPSHOT/features-yang-demo-app-1.0-SNAPSHOT-features.xml

Please help me to understand the correct way of deploying the feature to ODL karaf distribution. Please correct me if the there is any mistake in adding the feature to ODL karaf distribution.

Update:

I found out that the correct way of deploying of feature is:

  1. add the feature repo to the karaf:

    opendaylight-user>feature:repo-add mvn:<groupid>/features-<artifactid>/<version>/xml/features

  2. install the feature to the karaf:

    opendaylight-user> feature:install <feature-name>

But still deploying my feature I am not able to correctly deploy I am getting the same error. I tried to get the list of dependency:

opendaylight-user@root>feature:info odl-task-provider
Feature odl-task-provider 1.0-SNAPSHOT
Feature has no configuration
Feature configuration files:
  etc/opendaylight/karaf/05-task-provider-config.xml
Feature depends on:
  odl-yangtools-common 0.7.0-SNAPSHOT
  odl-yangtools-binding 0.7.0-SNAPSHOT
  odl-mdsal-broker 1.2.0-SNAPSHOT
Feature contains followed bundles:
  mvn:com.example.yangapp/yang-demo-app-model/1.0-SNAPSHOT
  mvn:com.example.yangapp/yang-demo-app-provider/1.0-SNAPSHOT
Feature has no conditionals.

opendaylight-user@root>feature:info odl-yangtools-common
Feature odl-yangtools-common 0.8.0-SNAPSHOT
Description:
  OpenDaylight :: Yangtools :: Common
Feature has no configuration
Feature has no configuration files
Feature has no dependencies.
Feature contains followed bundles:
  mvn:com.google.guava/guava/18.0
  mvn:org.opendaylight.yangtools/concepts/0.8.0-SNAPSHOT
  mvn:org.opendaylight.yangtools/yang-common/0.8.0-SNAPSHOT
  mvn:org.opendaylight.yangtools/util/0.8.0-SNAPSHOT
  mvn:org.opendaylight.yangtools/object-cache-api/0.8.0-SNAPSHOT
  mvn:org.opendaylight.yangtools/object-cache-guava/0.8.0-SNAPSHOT
  mvn:org.opendaylight.yangtools/object-cache-noop/0.8.0-SNAPSHOT
  mvn:com.github.romix/java-concurrent-hash-trie-map/0.2.23
Feature has no conditionals.

So I think there is mismatch of available yang-tool-common version. Could you please suggest me for required change I need for the application deployment.

Update:

As per the suggested comments I tried and found that there was version mismatch. But if I change the version of feature odl-yangtools-common to 0.6.5-Helium-SR3 from 0.7.0-SNAPSHOT in mypom.xml file then the compilation fails with the following error:

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/subh/subh_mac/do_old/my_app_journ/yang-demo-app/provider/src/main/java/com/example/yangapp/provider/TaskProvider.java:[97,59] error: cannot find symbol
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] yang-demo-app ...................................... SUCCESS [  0.633 s]
[INFO] yang-demo-app-model ................................ SUCCESS [  8.041 s]
[INFO] yang-demo-app-provider ............................. FAILURE [  5.330 s]
[INFO] yang-demo-app-consumer ............................. SKIPPED
[INFO] yang-demo-app-web .................................. SKIPPED
[INFO] features-yang-demo-app ............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.870 s
[INFO] Finished at: 2015-05-20T01:28:34+05:30
[INFO] Final Memory: 35M/384M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project yang-demo-app-provider: Compilation failure
[ERROR] /Users/subh/subh_mac/do_old/my_app_journ/yang-demo-app/provider/src/main/java/com/example/yangapp/provider/TaskProvider.java:[97,59] error: cannot find symbol
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project yang-demo-app-provider: Compilation failure
/Users/subh/subh_mac/do_old/my_app_journ/yang-demo-app/provider/src/main/java/com/example/yangapp/provider/TaskProvider.java:[97,59] error: cannot find symbol

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
/Users/subh/subh_mac/do_old/my_app_journ/yang-demo-app/provider/src/main/java/com/example/yangapp/provider/TaskProvider.java:[97,59] error: cannot find symbol

    at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:729)
    at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    ... 19 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :yang-demo-app-provider

Please suggest the way to overcome the compilation error.

Error on installing feature to odl karaf SR3 distribution.

I am trying to write sample feature and want to deploy the feature to odl karaf SR3 distribution.

I followed the following wiki for the writing the feature: https://wiki.opendaylight.org/view/OpenDaylightController:MD-SAL:ArchetypeTutorial

but I am getting the error on deploying the feature.

opendaylight-user@root>feature:install task-1.0-SNAPSHOT
Error executing command: No feature named 'task-1.0-SNAPSHOT' with version '0.0.0' available

Following is the feature file:

<?xml version="1.0" encoding="UTF-8"?>

<features name="task-1.0-SNAPSHOT" 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">

    <feature name='odl-task-provider' version='1.0-SNAPSHOT'>
        <feature version='0.7.0-SNAPSHOT'>odl-yangtools-common</feature>
        <feature version='0.7.0-SNAPSHOT'>odl-yangtools-binding</feature>
        <feature version='1.2.0-SNAPSHOT'>odl-mdsal-broker</feature>
        <bundle>mvn:com.example.yangapp/yang-demo-app-model/1.0-SNAPSHOT</bundle>
        <bundle>mvn:com.example.yangapp/yang-demo-app-provider/1.0-SNAPSHOT</bundle>
        <configfile finalname="etc/opendaylight/karaf/05-task-provider-config.xml">mvn:com.example.yangapp/yang-demo-app-provider/1.0-SNAPSHOT/xml/config</configfile>
    </feature>
    <feature name='odl-task-consumer' version='1.0-SNAPSHOT'>
        <feature>odl-task-provider</feature>
        <bundle>mvn:com.example.yangapp/yang-demo-app-consumer/1.0-SNAPSHOT</bundle>
        <configfile finalname="etc/opendaylight/karaf/06-task-consumer-config.xml">mvn:com.example.yangapp/yang-demo-app-consumer/1.0-SNAPSHOT/xml/config</configfile>
    </feature>
    <feature name='odl-task-web' version='1.0-SNAPSHOT'>
        <feature>http</feature>
        <feature>odl-task-provider</feature>
        <feature version='1.2.0-SNAPSHOT'>odl-restconf-noauth</feature>
        <bundle>mvn:com.example.yangapp/yang-demo-app-web/1.0-SNAPSHOT</bundle>
    </feature>
</features>

I have also tried to install the feature 'odl-task-provider' but again I am getting the error on installtion.

opendaylight-user@root>feature:install odl-task-provider
Error executing command: No feature named 'odl-yangtools-common' with version '0.7.0-SNAPSHOT' available

I have added this feature to ODL by following command:

opendaylight-user@root>feature:repo-add file:/Users/subh/.m2/repository/com/example/yangapp/features-yang-demo-app/1.0-SNAPSHOT/features-yang-demo-app-1.0-SNAPSHOT-features.xml

Please help me to understand the correct way of deploying the feature to ODL karaf distribution. Please correct me if the there is any mistake in adding the feature to ODL karaf distribution.

Update:

I found out that the correct way of deploying of feature is:

  1. add the feature repo to the karaf:

    opendaylight-user>feature:repo-add mvn:<groupid>/features-<artifactid>/<version>/xml/features

  2. install the feature to the karaf:

    opendaylight-user> feature:install <feature-name>

But still deploying my feature I am not able to correctly deploy I am getting the same error. I tried to get the list of dependency:

opendaylight-user@root>feature:info odl-task-provider
Feature odl-task-provider 1.0-SNAPSHOT
Feature has no configuration
Feature configuration files:
  etc/opendaylight/karaf/05-task-provider-config.xml
Feature depends on:
  odl-yangtools-common 0.7.0-SNAPSHOT
  odl-yangtools-binding 0.7.0-SNAPSHOT
  odl-mdsal-broker 1.2.0-SNAPSHOT
Feature contains followed bundles:
  mvn:com.example.yangapp/yang-demo-app-model/1.0-SNAPSHOT
  mvn:com.example.yangapp/yang-demo-app-provider/1.0-SNAPSHOT
Feature has no conditionals.

opendaylight-user@root>feature:info odl-yangtools-common
Feature odl-yangtools-common 0.8.0-SNAPSHOT
Description:
  OpenDaylight :: Yangtools :: Common
Feature has no configuration
Feature has no configuration files
Feature has no dependencies.
Feature contains followed bundles:
  mvn:com.google.guava/guava/18.0
  mvn:org.opendaylight.yangtools/concepts/0.8.0-SNAPSHOT
  mvn:org.opendaylight.yangtools/yang-common/0.8.0-SNAPSHOT
  mvn:org.opendaylight.yangtools/util/0.8.0-SNAPSHOT
  mvn:org.opendaylight.yangtools/object-cache-api/0.8.0-SNAPSHOT
  mvn:org.opendaylight.yangtools/object-cache-guava/0.8.0-SNAPSHOT
  mvn:org.opendaylight.yangtools/object-cache-noop/0.8.0-SNAPSHOT
  mvn:com.github.romix/java-concurrent-hash-trie-map/0.2.23
Feature has no conditionals.

So I think there is mismatch of available yang-tool-common version. Could you please suggest me for required change I need for the application deployment.

Update:

As per the suggested comments from @vrpolak, I tried and found that there was version mismatch. But if I change the version of feature odl-yangtools-common to 0.6.5-Helium-SR3 from 0.7.0-SNAPSHOT in mypom.xml file then the compilation fails with the following error:

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/subh/subh_mac/do_old/my_app_journ/yang-demo-app/provider/src/main/java/com/example/yangapp/provider/TaskProvider.java:[97,59] error: cannot find symbol
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] yang-demo-app ...................................... SUCCESS [  0.633 s]
[INFO] yang-demo-app-model ................................ SUCCESS [  8.041 s]
[INFO] yang-demo-app-provider ............................. FAILURE [  5.330 s]
[INFO] yang-demo-app-consumer ............................. SKIPPED
[INFO] yang-demo-app-web .................................. SKIPPED
[INFO] features-yang-demo-app ............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.870 s
[INFO] Finished at: 2015-05-20T01:28:34+05:30
[INFO] Final Memory: 35M/384M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project yang-demo-app-provider: Compilation failure
[ERROR] /Users/subh/subh_mac/do_old/my_app_journ/yang-demo-app/provider/src/main/java/com/example/yangapp/provider/TaskProvider.java:[97,59] error: cannot find symbol
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project yang-demo-app-provider: Compilation failure
/Users/subh/subh_mac/do_old/my_app_journ/yang-demo-app/provider/src/main/java/com/example/yangapp/provider/TaskProvider.java:[97,59] error: cannot find symbol

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
/Users/subh/subh_mac/do_old/my_app_journ/yang-demo-app/provider/src/main/java/com/example/yangapp/provider/TaskProvider.java:[97,59] error: cannot find symbol

    at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:729)
    at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    ... 19 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :yang-demo-app-provider

Please suggest the way to overcome the compilation error.