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


How to resolve this issue while running OpenDayLight Java Maven Imported project in Eclipse?

asked 2014-05-11 13:46:09 -0700

I successfully able to import the Existing Maven project from outside my workspace folder in Eclipse. Import all of the OpenDaylight projects into eclipse 1. From Eclipse, go to File => Import => Maven => Existing Maven Projects 2. Browse to the root directory of the git repository 3. All of the projects should be selected by default, just click Finish

But, when I try to Run As the project it shows the following error:

Variable references non-existent resource :

The project is git pulled at /home/milson/opendaylightOrg/controller/

The Eclipse is at /home/milson/Downloads/eclipse/

My workspace is set at /home/milson/workspace/

I am unable to continue to RUN ODL using Eclipse but from CLI it's working perfectly.

How to fix this Java IDE issue? and successfully run the project!

edit retag flag offensive close merge delete


Do you see any options in "Run-->Run History"? If yes, can you trigger "Opendaylight-application" from the available options and see if it works.

Anil Vishnoi ( 2014-05-11 14:20:22 -0700 )edit

@Anil : While I trigger "Opendaylight-application" from "Run-->Run History" It shows : Launch configuration opendaylight-application references non-existing project sal.

milstein ( 2014-05-11 17:17:07 -0700 )edit

milsten, as @Mierdin mentioned below, can you use /home/milson/opendaylightOrg/controller as your eclipse workspace directory and then import all the project to your eclipse. This is the way my eclipse workspace for odl is setup and its working fine, so worth trying.

Anil Vishnoi ( 2014-05-12 11:15:20 -0700 )edit

Really I have the same problem. I tried all these suggestions, but it's not solved. Can someone help me to solve that problem?

Khaled Riad ( 2014-05-28 19:47:02 -0700 )edit

Read my latest answer @Khaled

milstein ( 2014-05-29 15:07:42 -0700 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2014-05-29 15:08:59 -0700

updated 2014-05-29 15:11:18 -0700

Hi all,

You can do:

1. Select distribution.opendaylight project
2. **Right click** it and select **Run As** -- > **Run Configurations...** and edit all **Maven Build** lists by selecting them individually and renaming the **Base directory** to: **${workspace_loc:/distribution.opendaylight}** instead of **${workspace_loc:/releasepom}**
3. Now cleaning the whole project and running the **opendaylight-application.launch**

Let me know if this fix your issue?


edit flag offensive delete publish link more



Thanks It solved the problem :-)

esumit ( 2014-11-05 05:52:07 -0700 )edit

answered 2014-05-12 08:19:10 -0700

Mierdin gravatar image

Be sure that the directory you're selecting for the import contains the pom.xml file - this is what Maven will look for.

I'd also recommend that you do a

mvn clean install

in this same directory prior to importing into Eclipse. Strictly speaking it may not be totally required to do it this way, but it's solved a lot of problems for me.

edit flag offensive delete publish link more


Unfortunately you MUST do a 'mvn clean install' prior to import as the yang source code generation does not run during the eclipse incremental builds. See

Devin Avery ( 2014-05-16 11:44:49 -0700 )edit

Actually the yang-maven-plugin is now enabled so it runs on import but it may get yang import failures in some projects. m2e just doesn't behave the same way as command line maven - a bit frustrating.

tpantelis ( 2014-05-30 10:05:16 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-05-11 13:46:09 -0700

Seen: 1,304 times

Last updated: May 29 '14