# How to debug Opendaylight in Eclipse

When I imported whole ovsdb project of Opendaylight into Eclipse, it goes witch a setback:

And my maven version and Eclipse configuration is as follows:

The Global settings is almost empty:

The User settings:

<?xml version="1.0" encoding="UTF-8"?>
<!-- vi: set et smarttab sw=2 tabstop=2: -->
<!--

This program and the accompanying materials are made available under the
terms of the Eclipse Public License v1.0 which accompanies this distribution,
and is available at http://www.eclipse.org/legal/epl-v10.html
-->
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

<servers>
<server>
<id>opendaylight-local-snapshot</id>
</server>
<server>
<id>opendaylight-remote-snapshot</id>
</server>
<server>
<id>opendaylight-snapshot</id>
</server>
<server>
<id>opendaylight-local-mirror</id>
</server>
<server>
<id>opendaylight-remote-mirror</id>
</server>
<server>
<id>opendaylight-mirror</id>
</server>
</servers>

<profiles>
<profile>
<id>opendaylight-release</id>
<repositories>
<repository>
<id>opendaylight-local-mirror</id>
<name>opendaylight-local-mirror</name>
<url>http://10.10.51.127:8081/repository/opendaylight-local-release/</url>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>opendaylight-remote-mirror</id>
<name>opendaylight-remote-mirror</name>
<url>http://10.10.51.127:8081/repository/opendaylight-remote-release/</url>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Central Repository</name>
<url>http://10.10.51.127:8081/repository/maven-central/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>opendaylight-mirror</id>
<name>opendaylight-mirror</name>
<url>http://10.10.51.127:8081/repository/opendaylight-release/</url>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Central Repository</name>
<url>http://10.10.51.127:8081/repository/maven-central/</url>
</pluginRepository>
</pluginRepositories>
</profile>

<profile>
<id>opendaylight-snapshots</id>
<repositories>
<repository>
<id>opendaylight-local-snapshot</id>
<name>opendaylight-local-snapshot</name>
<url>http://10.10.51.127:8081/repository/opendaylight-local-snapshot/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<!-- host components we deployed, so always update -->
<!-- updatePolicy>never</updatePolicy -->
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>opendaylight-remote-snapshot</id>
<name>opendaylight-remote-snapshot</name>
<url>http://10.10.51.127:8081/repository/opendaylight-remote-snapshot/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>opendaylight-snapshot</id>
<name>opendaylight-snapshot</name>
<url>http://10.10.51.127:8081/repository/opendaylight-snapshot/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>

<activeProfiles>
<activeProfile>opendaylight-release</activeProfile>
<activeProfile>opendaylight-snapshots</activeProfile>
</activeProfiles>
</settings>

edit retag close merge delete

Hi , if you like use IntelliJ IDEA the Java IDE . You will feel the big difference between Eclipse - IntelliJ. Easy to debug also. Just suggestion. go ahead with whatever you are comfortable. :-)

( 2016-05-03 00:59:37 -0700 )edit

Sort by » oldest newest most voted

The ovsdb project now cleanly imports into Eclipse if you use the new fully automated opendaylight-eclipse-setup based on Eclipse Installer (Oomph) from https://github.com/vorburger/opendayl... instead of following the manual instructions listed on this page. Watch this https://www.youtube.com/watch?v=BLW8a... video to see what it is all about.

If you are still having the problem above when using this new Eclipse workspace setup provisioning, please comment here, else if it works for you please mark this answer as correct.

more

I found the problem could not be resolved, as said in the Opendaylight Wiki( https://wiki.opendaylight.org/view/Ge... ):

    Eclipse is no longer able to compile OpenDayLight. The reason is three maven plugins which are used by OpenDayLight but are not integrated into Eclipse: maven-plugin-plugin, karaf-maven-plugin and maven-antrun-plugin.
This means you will always have Eclipse compile errors in the project (this could go to up to 100000 errors).
You can use Eclipse for editing easily but to compile the project you need to open a terminal window.
If you want to debug the code, you need to do it remotely.


So I can only build it in Linux by terminal windows and debug it remotely.

more