|
|
*How to set up jCoAP in Eclipse*
|
|
|
|
|
|
|
|
|
* First make sure Maven (a build system) is part of your Eclipse installation.
|
|
|
=> "Help"->"About Eclipse"->"Installation Details"
|
|
|
|
... | ... | @@ -11,17 +12,22 @@ |
|
|
|
|
|
* You can now import jCoAP:core; jCoAP:examples and/or jCoAP:proxy projects. jCoAP:core is always required for the other two projects.
|
|
|
|
|
|
* Eclipse will now import the projects. Additionally maven will download all dependencies of jCoAP in the backgound.
|
|
|
* Eclipse will now import the projects. Additionally Maven will download all dependencies of jCoAP in the background.
|
|
|
|
|
|
* In order to make jCoAP projects compile, the compiler need to be set to Java 1.6 or higher.
|
|
|
=> Right click on the project -> "Properties" -> "Java Compiler"
|
|
|
|
|
|
* Before you can run any example or the jCoAP proxy you need to build/install the jCoAP core first.
|
|
|
=> Select jCoAP project; right click -> "Runs as .." -> "Maven install"
|
|
|
This will build the jCoAP core and makes it available in your local maven repository.
|
|
|
=> Select jCoAP project; right click -> "Runs as .." -> "Maven install".
|
|
|
* This will build the jCoAP core and makes it available in your local maven repository.
|
|
|
|
|
|
* Now every other project can use jCoAP core as a Maven dependency (like our examples do)
|
|
|
* Now every other project can use jCoAP core as a Maven dependency (like our examples do).
|
|
|
|
|
|
* If you want to use jCoAP:core for your own project without Maven you can just put the jCoAP project as a dependency.
|
|
|
=> Select your project; right click -> "Project Properties" -> "Java Build Path" -> "Projects" -> "Add" and select jCoAP core
|
|
|
|
|
|
Known issues:
|
|
|
* Old versions of the m2e plugin (and the respectively, older versions of Eclipse [3.8.1 and lower]) cannot deal with the Maven plugins "copy-dependency" and "unpack". We recommend using a more recent version of Eclipse and m2e.
|
|
|
|
|
|
|
|
|
|