|
Re: Add a new plugin in OM2M (without Eclipse) [message #1735895 is a reply to message #1735758] |
Thu, 23 June 2016 13:01 |
Francois Aissaoui Messages: 38 Registered: April 2015 |
Member |
|
|
Hi,
Quick answer will be yes, but difficult.
In fact, if you want to use the OM2M build procedure to integrate your plugin like in the wiki tutorial, you have to create a specific folder structure for maven, write the pom.xml file, the MANIFEST.mf file and then your java code and so on.
So yes you can write every thing with vim (or whatever is your favorite command line text editor) or, and much simpler, you can make the development on your computer and create some scripts to push directly your code on the raspberry pi after the compilation (as the "mvn install" operation is quite slow on raspberry pi, and can use a lot of memory for the maven repository, it is preferable to compile on your computer).
Regards,
François
|
|
|
Re: Add a new plugin in OM2M (without Eclipse) [message #1740454 is a reply to message #1735895] |
Sat, 13 August 2016 07:44 |
Yu-Hao Hsu Messages: 15 Registered: July 2016 |
Junior Member |
|
|
Hi,
I also met the same problem.
I want to run new plugin like in the wiki tutorial in my raspberry pi.
What I tried is I add the new plugin using eclipse in my computer, and then I move the whole om2m project to my raspberry pi.
Finally I run $ mvn clean install on my raspberry pi.
But now I met some error , the below is the error message after I tpe mvn clean install:
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.20.0:compile (default-compile) on project org.eclipse.om2m.sample.ipe: Fatal error compiling: target level should be comprised in between '1.1' and '1.7' (or '5', '5.0', ..., '7' or '7.0') or cldc1.1: 1.8 -> [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 :org.eclipse.om2m.sample.ipe
Did Anyone try to move the project in the raspberry pi?
Please give me some advice.
Thank you in advance!
Howard
|
|
|
|
Powered by
FUDForum. Page generated in 0.03761 seconds