Upgrade to kura user workspace 2.1 - The import org.eclipse.kura cannot be resolved [message #1757909] |
Tue, 21 March 2017 16:28 |
Ignacio Rey Messages: 6 Registered: April 2016 |
Junior Member |
|
|
Hi, I'm trying to upgrade my code to run on kura 2.1 (from kura 1.4).
I downloaded the developer's workspace from the downloads page (https://www.eclipse.org/kura/downloads.php). First thing I noticed is that the org.eclipse.kura.api eclipse project is not there anymore - it's become a plugin in target-definition/ instead. That's fine, maven can still find it and it compiles everything correctly. However, eclipse (the IDE) cannot, so it reports a thousand compilation errors that shouldn't be there. Most of these errors appear under the following line in my source files:
import org.eclipse.kura.configuration.ConfigurableComponent;
That's where the IDE points out the error in the title: "The import org.eclipse.kura cannot be resolved". Even if maven compiles, not being able to do so in the IDE is a problem because many features become useless (e.g. refactoring, unit testing, etc).
I suspect there should be something I have to change in the project settings, but I don't know what. I did open kura-equinox_3.8.1.target and clicked on "set as target platform" but it didn't fix it. Maven update my project also made no difference.
Suspicious fact: If I open the kura-equinox_3.8.1.target file in the IDE and switch to the content tab, the org.eclipse.kura.api plugin does not show up in the list. Is that normal? It is there as a .jar file and it is listed in the two .xml files that describe the maven repositories inside target-definition.
[Updated on: Wed, 22 March 2017 17:04] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03747 seconds