How to add the dependency for openflowplugin

asked 2015-05-25 14:41:05 -0800

updated 2015-05-28 23:15:51 -0800

I am trying to write an openflow application, so that I want to include the openflow-api artifact to the project. I added the dependancy in my pom.xml as following :

<dependency>
        <groupId>org.opendaylight.openflowplugin</groupId>
        <artifactId>openflowplugin-api</artifactId>
        <version>0.0.6-Helium-SR3</version>
    </dependency>

Then I tried to compile the code, but again I am getting error that dependencies could not be resolved during mci.

[ERROR] Failed to execute goal on project hello-impl: Could not resolve dependencies for project org.opendaylight.hello:hello-impl:bundle:1.0.0-SNAPSHOT: The following artifacts could not be resolved: org.opendaylight.controller.model:model-flow-service:jar:1.3.0-SNAPSHOT, org.opendaylight.controller.model:model-flow-statistics:jar:1.3.0-SNAPSHOT: Failure to find org.opendaylight.controller.model:model-flow-service:jar:1.3.0-SNAPSHOT in http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project hello-impl: Could not resolve dependencies for project org.opendaylight.hello:hello-impl:bundle:1.0.0-SNAPSHOT: The following artifacts could not be resolved: org.opendaylight.controller.model:model-flow-service:jar:1.3.0-SNAPSHOT, org.opendaylight.controller.model:model-flow-statistics:jar:1.3.0-SNAPSHOT: Failure to find org.opendaylight.controller.model:model-flow-service:jar:1.3.0-SNAPSHOT in http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced

Please let me know the correct way of including the dependancy.

Update:

I think, I need to update update my setting.xml file to download the repo from

https://ask.opendaylight.org/question/3837/error-on-installing-odl-openflowplugin-all-to-sr3-distribution/

But after updating the repo I am not able to build my application please check the following question : https://ask.opendaylight.org/question/3837/error-on-installing-odl-openflowplugin-all-to-sr3-distribution/

I am trying to deploy the my sample application ( https://github.com/subh007/ODL-Sample-App ) to the helium SR3 distribution.

edit retag flag offensive close merge delete

Comments

Once again, version mismatch. model-flow-service is a Helium only artifact, but 1.3.0 is post-lithium md-sal version in controller project, probably overriden by your application. I recommend you to "git checkout release/helium-sr3" on stable/helium branch of controller to see versions used there.

vrpolak ( 2015-05-26 03:31:15 -0800 )edit

@vrpolak could you please explain me which version I have to change. I am not able to understand.

subhash ( 2015-05-26 09:20:18 -0800 )edit

Which branch are you working on? Answer depends on that as version is different on different branches. Looks like stable/helium, but just want to be sure.

Vishal Thapar ( 2015-05-28 23:03:03 -0800 )edit

@Vishal Thapar I am using the distribution-Helium-SR3 distribution, I found out that I have to use new URL for the downloading the repo https://nexus.opendaylight.org/content/repositories/opendaylight.release (setting.xml file). Could you please help me for this question https://ask.opendaylight.org/question/3837/error-on-installing-odl-openflowplugin-all-to-sr3-distribution/

subhash ( 2015-05-28 23:11:29 -0800 )edit