Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » [UPDATED] Project Dependencies error(Kura repository fresh build problems)
[UPDATED] Project Dependencies error [message #1715419] Mon, 23 November 2015 13:11 Go to next message
Said Ucar is currently offline Said UcarFriend
Messages: 56
Registered: June 2015
Member
Hi,
I am new to Kura and I want to start develop new kura bundle, so I cloned the github/eclipse/kura repository and followed this guide step by step. In fact, I'm repeating the steps while writing this post.

Here is the what I did,

1) Maven version: In the document, Maven 3.0.5 suggested, It says Maven 3.1.0 has error. The current Maven version is 3.3.9. Still should I use 3.0.5 or I can use latest version? (I used 3.0.5)

2) Building target platform: I run the 'mvn clean install' command in the directory target-platform folder. Here is the output,

 mvn clean install
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for                                                                                                               org.eclipse.kura:org.usb4java:bundle:1.0.0
[WARNING] 'dependencies.dependency.systemPath' for org.usb4java:org.usb4java:jar                                                                                                               should not point at files within the project directory, ${basedir}/src/lib/usb4                                                                                                              java-1.2.0.jar will be unresolvable by dependent projects @ line 41, column 25
[WARNING] 'dependencies.dependency.systemPath' for org.usb4java:org.usb4java.lin                                                                                                              ux-arm:jar should not point at files within the project directory, ${basedir}/sr                                                                                                              c/lib/libusb4java-1.2.0-linux-arm.jar will be unresolvable by dependent projects                                                                                                               @ line 49, column 25
[WARNING] 'dependencies.dependency.systemPath' for org.usb4java:org.usb4java.lin                                                                                                              ux-x86_64:jar should not point at files within the project directory, ${basedir}                                                                                                              /src/lib/libusb4java-1.2.0-linux-x86_64.jar will be unresolvable by dependent pr                                                                                                              ojects @ line 57, column 25
[WARNING] 'dependencies.dependency.systemPath' for org.usb4java:org.usb4java.lin                                                                                                              ux-x86:jar should not point at files within the project directory, ${basedir}/sr                                                                                                              c/lib/libusb4java-1.2.0-linux-x86.jar will be unresolvable by dependent projects                                                                                                               @ line 65, column 25
[WARNING] 'dependencies.dependency.systemPath' for org.usb4java:org.usb4java.osx                                                                                                              -x86:jar should not point at files within the project directory, ${basedir}/src/                                                                                                              lib/libusb4java-1.2.0-osx-x86.jar will be unresolvable by dependent projects @ l                                                                                                              ine 73, column 25
[WARNING] 'dependencies.dependency.systemPath' for org.usb4java:org.usb4java.osx                                                                                                              -x86_64:jar should not point at files within the project directory, ${basedir}/s                                                                                                              rc/lib/libusb4java-1.2.0-osx-x86_64.jar will be unresolvable by dependent projec                                                                                                              ts @ line 81, column 25
[WARNING] 'dependencies.dependency.systemPath' for org.usb4java:org.usb4java.win                                                                                                              dows-x86_64:jar should not point at files within the project directory, ${basedi                                                                                                              r}/src/lib/libusb4java-1.2.0-windows-x86_64.jar will be unresolvable by dependen                                                                                                              t projects @ line 90, column 25
[WARNING] 'dependencies.dependency.systemPath' for org.usb4java:org.usb4java.win                                                                                                              dows-x86:jar should not point at files within the project directory, ${basedir}/                                                                                                              src/lib/libusb4java-1.2.0-windows-x86.jar will be unresolvable by dependent proj                                                                                                              ects @ line 98, column 25
[WARNING]
[WARNING] Some problems were encountered while building the effective model for                                                                                                               org.eclipse.kura:usb4java-javax:bundle:1.0.0
[WARNING] 'dependencies.dependency.systemPath' for javax.usb:usb-api:jar should                                                                                                               not point at files within the project directory, ${basedir}/src/lib/usb-api-1.0.                                                                                                              2.jar will be unresolvable by dependent projects @ line 32, column 25
[WARNING] 'dependencies.dependency.systemPath' for usb4java-javax:org.usb4java.j                                                                                                              avax:jar should not point at files within the project directory, ${basedir}/src/                                                                                                              lib/usb4java-javax-1.2.0.jar will be unresolvable by dependent projects @ line 4                                                                                                              0, column 25
[WARNING]
[WARNING] Some problems were encountered while building the effective model for                                                                                                               org.eclipse.kura:p2-repo-common:pom:1.0.0
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found d                                                                                                              uplicate declaration of plugin org.apache.maven.plugins:maven-antrun-plugin @ li                                                                                                              ne 194, column 12
[WARNING]
[WARNING] Some problems were encountered while building the effective model for                                                                                                               org.eclipse.kura:p2-repo-equinox_3.8.1:pom:1.0.0
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found d                                                                                                              uplicate declaration of plugin org.apache.maven.plugins:maven-antrun-plugin @ li                                                                                                              ne 95, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten t                                                                                                              he stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support buildin                                                                                                              g such malformed projects.
[WARNING]

[INFO] Executed tasks
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] target-platform ................................... SUCCESS [0.171s]
[INFO] Java API for working with Human Interface USB Devices (HID)  SUCCESS [2.550s]
[INFO] usb4java .......................................... SUCCESS [0.688s]
[INFO] usb4java-javax .................................... SUCCESS [0.478s]
[INFO] Serial Device based on SODA DK comm ............... SUCCESS [0.931s]
[INFO] p2-repo-common .................................... SUCCESS [2.870s]
[INFO] p2-repo-equinox_3.8.1 ............................. SUCCESS [2.872s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.076s
[INFO] Finished at: Tue Nov 24 10:49:01 EET 2015
[INFO] Final Memory: 28M/306M
[INFO] ------------------------------------------------------------------------



(Other INFO Logs ommited.)

The log says SUCCESS but there are some warnings related to usb4java. Should I solve this warnings or Ignore them?


3) Building core components

I built core components both CAN and WEB UI supported.

CAN Supported built logs;

[INFO]
[INFO] --- tycho-p2-plugin:0.20.0:update-local-index (default-update-local-index) @ org.eclipse.kura.protocol.can.test ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] kura .............................................. SUCCESS [20.192s]
[INFO] Kura Target Definition ............................ SUCCESS [0.274s]
[INFO] org.eclipse.kura.api .............................. SUCCESS [10.218s]
[INFO] org.eclipse.kura.test ............................. SUCCESS [0.464s]
[INFO] org.eclipse.kura.core ............................. SUCCESS [0.718s]
[INFO] org.eclipse.kura.core.certificates ................ SUCCESS [0.396s]
[INFO] org.eclipse.kura.core.cloud ....................... SUCCESS [0.643s]
[INFO] org.eclipse.kura.core.comm ........................ SUCCESS [0.338s]
[INFO] org.eclipse.kura.core.configuration ............... SUCCESS [0.510s]
[INFO] org.eclipse.kura.core.crypto ...................... SUCCESS [0.294s]
[INFO] org.eclipse.kura.core.deployment .................. SUCCESS [0.582s]
[INFO] org.eclipse.kura.core.log ......................... SUCCESS [0.350s]
[INFO] org.eclipse.kura.core.net ......................... SUCCESS [0.469s]
[INFO] org.eclipse.kura.deployment.agent ................. SUCCESS [0.354s]
[INFO] org.eclipse.kura.deployment.customizer ............ SUCCESS [0.382s]
[INFO] org.eclipse.kura.deployment.customizer.upgrade .... SUCCESS [0.356s]
[INFO] org.eclipse.kura.deployment.update ................ SUCCESS [0.243s]
[INFO] org.eclipse.kura.linux.bluetooth .................. SUCCESS [0.422s]
[INFO] org.eclipse.kura.linux.clock ...................... SUCCESS [0.367s]
[INFO] org.eclipse.kura.linux.command .................... SUCCESS [0.312s]
[INFO] org.eclipse.kura.linux.gpio ....................... SUCCESS [0.421s]
[INFO] org.eclipse.kura.linux.net ........................ SUCCESS [0.812s]
[INFO] org.eclipse.kura.linux.net.test ................... SUCCESS [0.334s]
[INFO] org.eclipse.kura.linux.position ................... SUCCESS [0.366s]
[INFO] org.eclipse.kura.linux.status ..................... SUCCESS [0.379s]
[INFO] org.eclipse.kura.linux.usb ........................ SUCCESS [0.349s]
[INFO] org.eclipse.kura.linux.watchdog ................... SUCCESS [0.389s]
[INFO] org.eclipse.kura.net.admin ........................ SUCCESS [0.914s]
[INFO] org.eclipse.kura.protocol.modbus .................. SUCCESS [2.538s]
[INFO] org.eclipse.kura.protocol.modbus.test ............. SUCCESS [0.326s]
[INFO] org.eclipse.kura.emulator ......................... SUCCESS [0.449s]
[INFO] org.eclipse.kura.emulator.gpio .................... SUCCESS [0.331s]
[INFO] org.eclipse.kura.core.test ........................ SUCCESS [0.593s]
[INFO] examples .......................................... SUCCESS [0.142s]
[INFO] org.eclipse.kura.demo.heater ...................... SUCCESS [0.306s]
[INFO] org.eclipse.kura.demo.modbus ...................... SUCCESS [0.318s]
[INFO] org.eclipse.kura.example.project .................. SUCCESS [0.403s]
[INFO] org.eclipse.kura.example.publisher ................ SUCCESS [0.329s]
[INFO] org.eclipse.kura.example.serial.publisher ......... SUCCESS [0.361s]
[INFO] org.eclipse.kura.example.gpio ..................... SUCCESS [0.324s]
[INFO] org.eclipse.kura.example.ble.tisensortag .......... SUCCESS [0.375s]
[INFO] org.eclipse.kura.example.beacon ................... SUCCESS [0.268s]
[INFO] org.eclipse.kura.protocol.can ..................... SUCCESS [2.750s]
[INFO] org.eclipse.kura.protocol.can.test ................ SUCCESS [0.304s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:01.882s
[INFO] Finished at: Tue Nov 24 10:53:02 EET 2015
[INFO] Final Memory: 68M/912M
[INFO] ------------------------------------------------------------------------


WEB UI Supported built logs;

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] kura .............................................. SUCCESS [0.527s]
[INFO] org.eclipse.kura.web .............................. SUCCESS [1:58.386s]
[INFO] distrib ........................................... FAILURE [26.423s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:25.708s
[INFO] Finished at: Tue Nov 24 10:56:25 EET 2015
[INFO] Final Memory: 40M/235M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (intel-edison-jars) on project distrib: An Ant BuildException has occured: The following error occurred while executing this line:
[ERROR] C:\Users\Gohm\git\kura\kura\distrib\src\main\ant\build_equinox_distrib.xml:496: Execute failed: java.io.IOException: Cannot run program "C:\Users\Gohm\git\kura\kura\distrib\target\..\src\main\sh\create_installer.sh" (in directory "C:\Users\Gohm\git\kura\kura\distrib"): CreateProcess error=193, %1 is not a valid Win32 application
[ERROR] around Ant part ...<ant antfile="C:\Users\Gohm\git\kura\kura\distrib/src/main/ant/build_equinox_distrib.xml" target="dist-linux"/>... @ 15:114 in C:\Users\Gohm\git\kura\kura\distrib\target\antrun\build-main.xml
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki. apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :distrib


I was followng the official documantation, at this point failure occured. Since the error related to intel-edison (I will use RaspberryPi), I ignore the problem and continued.

4) Eclipse workspace prepare

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] kura .............................................. SUCCESS [0.188s]
[INFO] Kura Target Definition ............................ SUCCESS [0.003s]
[INFO] org.eclipse.kura.api .............................. SUCCESS [0.069s]
[INFO] org.eclipse.kura.test ............................. SUCCESS [0.005s]
[INFO] org.eclipse.kura.core ............................. SUCCESS [0.005s]
[INFO] org.eclipse.kura.core.certificates ................ SUCCESS [0.004s]
[INFO] org.eclipse.kura.core.cloud ....................... SUCCESS [0.004s]
[INFO] org.eclipse.kura.core.comm ........................ SUCCESS [0.003s]
[INFO] org.eclipse.kura.core.configuration ............... SUCCESS [0.003s]
[INFO] org.eclipse.kura.core.crypto ...................... SUCCESS [0.004s]
[INFO] org.eclipse.kura.core.deployment .................. SUCCESS [0.003s]
[INFO] org.eclipse.kura.core.log ......................... SUCCESS [0.005s]
[INFO] org.eclipse.kura.core.net ......................... SUCCESS [0.005s]
[INFO] org.eclipse.kura.deployment.agent ................. SUCCESS [0.005s]
[INFO] org.eclipse.kura.deployment.customizer ............ SUCCESS [0.004s]
[INFO] org.eclipse.kura.deployment.customizer.upgrade .... SUCCESS [0.011s]
[INFO] org.eclipse.kura.deployment.update ................ SUCCESS [0.004s]
[INFO] org.eclipse.kura.linux.bluetooth .................. SUCCESS [0.005s]
[INFO] org.eclipse.kura.linux.clock ...................... SUCCESS [0.005s]
[INFO] org.eclipse.kura.linux.command .................... SUCCESS [0.005s]
[INFO] org.eclipse.kura.linux.gpio ....................... SUCCESS [0.005s]
[INFO] org.eclipse.kura.linux.net ........................ SUCCESS [0.005s]
[INFO] org.eclipse.kura.linux.net.test ................... SUCCESS [0.003s]
[INFO] org.eclipse.kura.linux.position ................... SUCCESS [0.004s]
[INFO] org.eclipse.kura.linux.status ..................... SUCCESS [0.003s]
[INFO] org.eclipse.kura.linux.usb ........................ SUCCESS [0.002s]
[INFO] org.eclipse.kura.linux.watchdog ................... SUCCESS [0.003s]
[INFO] org.eclipse.kura.net.admin ........................ SUCCESS [0.004s]
[INFO] org.eclipse.kura.protocol.modbus .................. SUCCESS [0.003s]
[INFO] org.eclipse.kura.protocol.modbus.test ............. SUCCESS [0.003s]
[INFO] org.eclipse.kura.emulator ......................... SUCCESS [0.003s]
[INFO] org.eclipse.kura.emulator.gpio .................... SUCCESS [0.002s]
[INFO] org.eclipse.kura.core.test ........................ SUCCESS [0.006s]
[INFO] examples .......................................... SUCCESS [0.002s]
[INFO] org.eclipse.kura.demo.heater ...................... SUCCESS [0.003s]
[INFO] org.eclipse.kura.demo.modbus ...................... SUCCESS [0.003s]
[INFO] org.eclipse.kura.example.project .................. SUCCESS [1.695s]
[INFO] org.eclipse.kura.example.publisher ................ SUCCESS [0.047s]
[INFO] org.eclipse.kura.example.serial.publisher ......... SUCCESS [0.005s]
[INFO] org.eclipse.kura.example.gpio ..................... SUCCESS [0.041s]
[INFO] org.eclipse.kura.example.ble.tisensortag .......... SUCCESS [0.042s]
[INFO] org.eclipse.kura.example.beacon ................... SUCCESS [0.041s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.844s
[INFO] Finished at: Tue Nov 24 11:00:21 EET 2015
[INFO] Final Memory: 54M/649M
[INFO] ------------------------------------------------------------------------


[INFO] Executed tasks
[INFO]
[INFO] <<< maven-eclipse-plugin:2.10:eclipse (default-cli) @ distrib <<<
[INFO]
[INFO] --- maven-eclipse-plugin:2.10:eclipse (default-cli) @ distrib ---
[INFO] Using Eclipse Workspace: C:\Users\Gohm\git
[WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C:\Program Files\Java\jre1.8.0_60
[INFO] no substring wtp server match.
[INFO] Using as WTP server : Pivotal tc Server Developer Edition (Runtime) v3.1
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER
[INFO] Resource directory's path matches an existing source directory. Resources have been merged with the source directory src/main/resources
[INFO] Resource directory's path matches an existing source directory. Resources have been merged with the source directory src/main/resources
[INFO] Resource directory's path matches an existing source directory. Resources have been merged with the source directory src/main/resources
[INFO] Resource directory's path matches an existing source directory. Resources have been merged with the source directory src/main/resources
[INFO] Resource directory's path matches an existing source directory. Resources have been merged with the source directory src/main/resources
[INFO] Resource directory's path matches an existing source directory. Resources have been merged with the source directory src/main/resources
[INFO] Resource directory's path matches an existing source directory. Resources have been merged with the source directory src/main/resources
[INFO] Resource directory's path matches an existing source directory. Resources have been merged with the source directory src/main/resources
[INFO] Resource directory's path matches an existing source directory. Resources have been merged with the source directory src/main/resources
[INFO] Resource directory's path matches an existing source directory. Resources have been merged with the source directory src/main/resources
[INFO] Not writing settings - defaults suffice
[INFO] Wrote Eclipse project for "distrib" to C:\Users\Gohm\git\kura\kura\distrib.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] kura .............................................. SUCCESS [0.455s]
[INFO] distrib ........................................... SUCCESS [11.016s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.917s
[INFO] Finished at: Tue Nov 24 11:01:26 EET 2015
[INFO] Final Memory: 22M/315M
[INFO] ------------------------------------------------------------------------


Now I think everythings fine, I continue to Configure Eclipse, (I'm using Eclipse Mars),

Perspective : Java (Not Java EE),
Maven 2 Eclipse installed,
eGit installed,
Eclipse restarted.

Import Existing Maven Projects,


Team>Share Project>Git ( I think this is automated now)
Target Platform Set.
Document says, there should be no error but I have,
'distrib:jat:1.1.0' I noticed that, distrib version 1.4.0.SNAPSHOT, so I changed the org.eclipse.kura.qa/pom.xml distrib dependency from 1.1.0 to 1.4.0.SNAPSHOT,

Maven > Update projects

Voila, there is no more error in the workspace. And here we go,

I want to develop a bundle for my Raspberry Pi. I want to use serial communication, so I want open org.eclipse.kura.example.serial.publisher project. I open MANIFEST.MF, I checked the Imported Packages, Right click and find unused dependencies, there are two packages unused.

I want to export this serialpublisher project as a plugin,
"Right Click project > Export > Plugin Development > Deployable plugins and fragments", Errors Occured, here is the log,

# 11/24/15 11:56:00 AM EET
# Eclipse Compiler for Java(TM) v20150902-1521, 3.11.1, Copyright IBM Corp 2000, 2015. All rights reserved.
----------
1. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 23)
	import org.eclipse.kura.KuraException;
	       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import org.eclipse.kura.KuraException cannot be resolved
----------
2. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 24)
	import org.eclipse.kura.cloud.CloudClient;
	       ^^^^^^^^^^^^^^^^^^^^^^
The import org.eclipse.kura.cloud cannot be resolved
----------
3. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 25)
	import org.eclipse.kura.cloud.CloudClientListener;
	       ^^^^^^^^^^^^^^^^^^^^^^
The import org.eclipse.kura.cloud cannot be resolved
----------
4. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 26)
	import org.eclipse.kura.cloud.CloudService;
	       ^^^^^^^^^^^^^^^^^^^^^^
The import org.eclipse.kura.cloud cannot be resolved
----------
5. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 27)
	import org.eclipse.kura.comm.CommConnection;
	       ^^^^^^^^^^^^^^^^^^^^^
The import org.eclipse.kura.comm cannot be resolved
----------
6. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 28)
	import org.eclipse.kura.comm.CommURI;
	       ^^^^^^^^^^^^^^^^^^^^^
The import org.eclipse.kura.comm cannot be resolved
----------
7. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 29)
	import org.eclipse.kura.configuration.ConfigurableComponent;
	       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import org.eclipse.kura.configuration cannot be resolved
----------
8. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 30)
	import org.eclipse.kura.message.KuraPayload;
	       ^^^^^^^^^^^^^^^^^^^^^^^^
The import org.eclipse.kura.message cannot be resolved
----------
9. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 37)
	public class ExampleSerialPublisher implements ConfigurableComponent, CloudClientListener  
	                                               ^^^^^^^^^^^^^^^^^^^^^
ConfigurableComponent cannot be resolved to a type
----------
10. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 37)
	public class ExampleSerialPublisher implements ConfigurableComponent, CloudClientListener  
	                                                                      ^^^^^^^^^^^^^^^^^^^
CloudClientListener cannot be resolved to a type
----------
11. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 58)
	private CloudService m_cloudService;
	        ^^^^^^^^^^^^
CloudService cannot be resolved to a type
----------
12. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 59)
	private CloudClient m_cloudClient;
	        ^^^^^^^^^^^
CloudClient cannot be resolved to a type
----------
13. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 63)
	private CommConnection m_commConnection;
	        ^^^^^^^^^^^^^^
CommConnection cannot be resolved to a type
----------
14. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 87)
	public void setCloudService(CloudService cloudService) {
	                            ^^^^^^^^^^^^
CloudService cannot be resolved to a type
----------
15. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 88)
	m_cloudService = cloudService;
	^^^^^^^^^^^^^^
CloudService cannot be resolved to a type
----------
16. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 91)
	public void unsetCloudService(CloudService cloudService) {
	                              ^^^^^^^^^^^^
CloudService cannot be resolved to a type
----------
17. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 92)
	m_cloudService = null;
	^^^^^^^^^^^^^^
CloudService cannot be resolved to a type
----------
18. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 120)
	m_cloudClient = m_cloudService.newCloudClient(APP_ID);
	^^^^^^^^^^^^^
CloudClient cannot be resolved to a type
----------
19. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 120)
	m_cloudClient = m_cloudService.newCloudClient(APP_ID);
	                ^^^^^^^^^^^^^^
CloudService cannot be resolved to a type
----------
20. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 121)
	m_cloudClient.addCloudClientListener(this);
	^^^^^^^^^^^^^
CloudClient cannot be resolved to a type
----------
21. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 145)
	m_cloudClient.release();
	^^^^^^^^^^^^^
CloudClient cannot be resolved to a type
----------
22. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 170)
	KuraPayload msg, int qos, boolean retain) {
	^^^^^^^^^^^
KuraPayload cannot be resolved to a type
----------
23. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 177)
	KuraPayload msg, int qos, boolean retain) {
	^^^^^^^^^^^
KuraPayload cannot be resolved to a type
----------
24. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 183)
	public void onConnectionLost() {
	            ^^^^^^^^^^^^^^^^^^
The method onConnectionLost() of type ExampleSerialPublisher must override or implement a supertype method
----------
25. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 189)
	public void onConnectionEstablished() {
	            ^^^^^^^^^^^^^^^^^^^^^^^^^
The method onConnectionEstablished() of type ExampleSerialPublisher must override or implement a supertype method
----------
26. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 195)
	public void onMessageConfirmed(int messageId, String appTopic) {
	            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method onMessageConfirmed(int, String) of type ExampleSerialPublisher must override or implement a supertype method
----------
27. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 201)
	public void onMessagePublished(int messageId, String appTopic) {
	            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method onMessagePublished(int, String) of type ExampleSerialPublisher must override or implement a supertype method
----------
28. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 231)
	m_cloudClient.unsubscribe(topic);
	^^^^^^^^^^^^^
CloudClient cannot be resolved to a type
----------
29. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 232)
	} catch (KuraException e) {
	         ^^^^^^^^^^^^^
KuraException cannot be resolved to a type
----------
30. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 247)
	m_cloudClient.subscribe(topic, 0);
	^^^^^^^^^^^^^
CloudClient cannot be resolved to a type
----------
31. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 248)
	} catch (KuraException e) {
	         ^^^^^^^^^^^^^
KuraException cannot be resolved to a type
----------
32. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 279)
	int parity = CommURI.PARITY_NONE;
	             ^^^^^^^
CommURI cannot be resolved to a variable
----------
33. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 281)
	parity = CommURI.PARITY_NONE;
	         ^^^^^^^
CommURI cannot be resolved to a variable
----------
34. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 283)
	parity = CommURI.PARITY_ODD;	
	         ^^^^^^^
CommURI cannot be resolved to a variable
----------
35. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 285)
	parity = CommURI.PARITY_EVEN;
	         ^^^^^^^
CommURI cannot be resolved to a variable
----------
36. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 288)
	String uri = new CommURI.Builder(port)
	                 ^^^^^^^
CommURI cannot be resolved to a type
----------
37. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 297)
	m_commConnection = (CommConnection) m_connectionFactory.createConnection(uri, 1, false);
	^^^^^^^^^^^^^^^^
CommConnection cannot be resolved to a type
----------
38. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 297)
	m_commConnection = (CommConnection) m_connectionFactory.createConnection(uri, 1, false);
	                    ^^^^^^^^^^^^^^
CommConnection cannot be resolved to a type
----------
39. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 297)
	m_commConnection = (CommConnection) m_connectionFactory.createConnection(uri, 1, false);
	                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The type javax.microedition.io.Connection cannot be resolved. It is indirectly referenced from required .class files
----------
40. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 297)
	m_commConnection = (CommConnection) m_connectionFactory.createConnection(uri, 1, false);
	                                                        ^^^^^^^^^^^^^^^^
The method createConnection(String, int, boolean) from the type ConnectionFactory refers to the missing type Connection
----------
41. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 298)
	m_commIs = m_commConnection.openInputStream();
	           ^^^^^^^^^^^^^^^^
CommConnection cannot be resolved to a type
----------
42. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 299)
	m_commOs = m_commConnection.openOutputStream();
	           ^^^^^^^^^^^^^^^^
CommConnection cannot be resolved to a type
----------
43. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 349)
	if (m_commConnection != null) {
	    ^^^^^^^^^^^^^^^^
CommConnection cannot be resolved to a type
----------
44. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 352)
	m_commConnection.close();
	^^^^^^^^^^^^^^^^
CommConnection cannot be resolved to a type
----------
45. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 357)
	m_commConnection = null;
	^^^^^^^^^^^^^^^^
CommConnection cannot be resolved to a type
----------
46. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 402)
	KuraPayload payload = new KuraPayload();
	^^^^^^^^^^^
KuraPayload cannot be resolved to a type
----------
47. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 402)
	KuraPayload payload = new KuraPayload();
	                          ^^^^^^^^^^^
KuraPayload cannot be resolved to a type
----------
48. ERROR in C:\Users\Gohm\git\kura\kura\examples\org.eclipse.kura.example.serial.publisher\src\main\java\org\eclipse\kura\example\serial\publisher\ExampleSerialPublisher.java (at line 411)
	m_cloudClient.publish(topic, payload, qos, retain);
	^^^^^^^^^^^^^
CloudClient cannot be resolved to a type
----------
48 problems (48 errors)





I am stuck at this point, in Eclipse workspace, there is no error just 6 warnings. But I can not export example projects. When I follow the Getting Started guide on eclipse github io page, I managed to export project as a deployable plugin. Why I can't export this example, I have no idea. I lost two days on this. I will appriciate if you suggest me anything.

Best Regards.
Mustafa.

[Updated on: Tue, 24 November 2015 10:07]

Report message to a moderator

Re: [UPDATED] Project Dependencies error [message #1715601 is a reply to message #1715419] Tue, 24 November 2015 15:41 Go to previous messageGo to next message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
Hello Mustafa,

A few things:

1. If you are creating bundles for Kura and do not intend to edit the Kura source code, I would simply use the Kura workspace instead of performing the Maven builds. This will simplify matters a great deal. Here is the setup guide for this [1].

2. If you do need to build Kura, you will need to do so on a Linux or OS X machine, Windows is not supported at this time.

3. You are missing dependencies in your bundle, can you post your MANIFEST.MF file? I would be careful using the 'Find unused dependencies' feature. Which bundles did it say to remove? I complete guide on creating a working serial bundle is here [2].

[1] http://eclipse.github.io/kura/doc/kura-setup.html
[2] http://eclipse.github.io/kura/doc/serial-example.html

Thanks,
--Dave
Re: [UPDATED] Project Dependencies error [message #1715609 is a reply to message #1715601] Tue, 24 November 2015 16:34 Go to previous message
Said Ucar is currently offline Said UcarFriend
Messages: 56
Registered: June 2015
Member
Hi David,

After your answer, I noticed the Linux or MacOs warning top of the document page. It was my fault to not read document carefully :\. I want to use CanBus for future project, so I think it would better to take a look at Kura sources on local workspace. Anyway, I decided to install Linux aside my Windows.

Thank you for your answer and your time.
Mustafa.
Previous Topic:how to back up KURA installation and configuration on a Raspberry Pi
Next Topic:Using Wifi
Goto Forum:
  


Current Time: Wed Sep 25 10:32:32 GMT 2024

Powered by FUDForum. Page generated in 0.02891 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top