Ask Your Question
0

How to debug Opendaylight in Eclipse

asked 2016-04-27 21:44:55 -0700

Veinthrough gravatar image

updated 2016-04-27 22:21:21 -0700

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

And my maven version and Eclipse configuration is as follows: maven version configuration

The Global settings is almost empty:

The User settings:

<?xml version="1.0" encoding="UTF-8"?>
<!-- vi: set et smarttab sw=2 tabstop=2: -->
<!--
Copyright (c) 2014, 2015 Cisco Systems, Inc. and others.  All rights reserved.

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>
  <username>veinthrough</username>
  <password>pica8</password>
</server>
<server>
  <id>opendaylight-remote-snapshot</id>
  <username>veinthrough</username>
  <password>pica8</password>
</server>
<server>
  <id>opendaylight-snapshot</id>
  <username>veinthrough</username>
  <password>pica8</password>
</server>
<server>
  <id>opendaylight-local-mirror</id>
  <username>veinthrough</username>
  <password>pica8</password>
</server>
<server>
  <id>opendaylight-remote-mirror</id>
  <username>veinthrough</username>
  <password>pica8</password>
</server>
<server>
  <id>opendaylight-mirror</id>
  <username>veinthrough</username>
  <password>pica8</password>
</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>
        <!-- host components downloaded, so never update -->
        <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>
        <!-- host components downloaded, so never update -->
        <updatePolicy>never</updatePolicy>
      </snapshots>
    </pluginRepository>
  </pluginRepositories>
</profile>
</profiles>

<activeProfiles>
<activeProfile>opendaylight-release</activeProfile>
<activeProfile>opendaylight-snapshots</activeProfile>
</activeProfiles>
</settings>
edit retag flag offensive close merge delete

Comments

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. :-)

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

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-05-03 04:44:32 -0700

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.

edit flag offensive delete publish link more
0

answered 2016-04-28 00:57:54 -0700

Veinthrough gravatar image

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.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-04-27 21:44:55 -0700

Seen: 108 times

Last updated: May 03 '16