Ask Your Question
0

How to run integration project with modified openflowplugin

asked 2015-04-23 04:43:27 -0700

jiangshuimei gravatar image

Hi. I have got a problem.I want to run opendaylight with modified openflowplugin.I have downloaded integration project from git clone https://git.opendaylight.org/gerrit/p/integration.git and openflowplugin project form git clone https://git.opendaylight.org/gerrit/p/openflowplugin.git.Then I operated as below: I:build integration project . II:run the integration project. III:install features for integration . IV:modify and bulid openflowplugin project. But I don't know how to run the integration project with the modified openflowplugin project. Please direct me step by step .Thanks.

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
2

answered 2015-09-14 08:11:59 -0700

Mandeep gravatar image

You are almost done with complete setup (once you have successfully built your controller and openflowplugin).. you only need to add your custom openflowplugin (local compiled) into your karaf (integration build).

Step 1: Check your openflowplugin version. <version> in openflowplugin/pom.xml. My setup has "0.2.0-SNAPSHOT".

Step 2: Add openflowplugin (local build) from local repository into karaf. Run following karaf command:

feature:repo-add mvn:org.opendaylight.openflowplugin/features-openflowplugin/0.2.0-SNAPSHOT/xml/features

NOTE: Change version as per your setup...

Step 3: Install your custom openflowplugin. Following is karaf command:

feature:install openflowplugin

You can cross check your repository by

feature:repo-list | grep openflowplugin

Above command will give you available openflowplugin versions in your integration setup.

You can also delete any repository by

feature:repo-remove <name of repo which is listing in feature:repo-list command>
edit flag offensive delete publish link more
1

answered 2015-09-13 22:25:30 -0700

Sania gravatar image

updated 2015-09-13 22:26:19 -0700

1 Modify the OpenflowPlugin Code. (Which you've already done)
2 Build it using maven.
3 Build the integration project.
4 Install required features in Karaf.
The integration project checks the local .m2 repo for all the jars before going to main servers. So when you build the openflowplugin project, its jar files are saved in your local .m2 repo and are picked by the integration project when you build it.

Hope it helps!

edit flag offensive delete publish link more

Comments

same procedure for Controller project also right?

karthik330 ( 2016-01-21 22:17:30 -0700 )edit

yes, same procedure should work for all projects. One thing to point out, is that the original post noted the full distribution being built from the integration repo, but it's since been split out and the new repo is https://git.opendaylight.org/gerrit/#/admin/projects/integration/distribution

jamoluhrsen ( 2016-01-21 23:45:40 -0700 )edit
0

answered 2016-02-09 02:12:12 -0700

balaodl gravatar image

HI Mandeep, Sania,

i followed the steps above with a project called cup and tried to repo-add. i got this below error. my cup project is present in .m2 folder. but the error below shows different file location. any suggestions why this happens?

Error executing command: Error resolving artifact org.opendaylgiht.sample:cup-features:xml:features:0.2.1-SNAPSHOT: Could not find artifact org.opendaylgiht.sample:cup-features:xml:features:0.2.1-SNAPSHOT in defaultlocal (file:/home/ubuntu/integration/distributions/karaf/target/assembly/system/)

Thanks, Bala

edit flag offensive delete publish link more

Comments

I guess, it is trying to find your 'cup' project in system (pre build distributions). Can you share you command to see what is going wrong?

Mandeep ( 2016-02-11 01:34:04 -0700 )edit
0

answered 2016-02-10 06:48:31 -0700

karthik330 gravatar image

updated 2016-02-10 22:17:00 -0700

Hi , I developed a simple project .I want to add that to my ODL-Integration version. 1 .my simple Project (Path) is like hello , Its runnning successfully when i launch karaf,I can get output from restconf 2. i need to add this to ODL-integration Project .When i used repo-add i got the error.image description

3.My Path application project located at m2 is image description

4.As from the error i checked the /integration/distribution/karaf/target/assembly/system image description

5 .Please help me to solve this issue @Mandeep ,@Sania. I want to add my path project to ODL-integration

edit flag offensive delete publish link more

Comments

@karthik330 Already answered in other thread.. repeating again for anyone facing same problem: try feature:repo-add mvn:org.opendaylight.path/features-path/1.0.0-SNAPSHOT/xml/features Catch is: it should be **features-path** instead of **path-features**

Mandeep ( 2016-02-11 03:28:22 -0700 )edit

thnx for ur reply.!

karthik330 ( 2016-02-11 03:56:20 -0700 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
2 followers

Stats

Asked: 2015-04-23 04:43:27 -0700

Seen: 541 times

Last updated: Feb 10 '16