Kevoree Eclipse Plugin
Basic useful feature list:
A project template that automatically activate Kevoree and m2e (maven) nature
A Kevoree Nature that automatically activate a specific builder
A set of Kevoree entity templates to quickly create Components, Groups, Channels and KevScripts
A KevScript textual editor with completion
A Kevscript graphical editor
A preference page for setting the Kevoree version used
A specific builder to automatically generate the model.
- Initial requirement
You need a Java JDK at least version 6 with a JAVA_HOME env variable
Start from an eclipse with Xtend and maven plugin, you can use this one https://www.eclipse.org/xtend/download.html
- First Step (Install the plugin)
Add an update site in Eclipse (http://coreff.kevoree.org/site/)
2. Step two (Create Kevoree Project)
When it is installed, you can create a new Kevoree Project. (File -> New Project -> Kevoree -> New Kevoree Project)
Next you must set the Project Name
Finally, you get a project with three natures, (Java, Maven and Kevoree). The POM is automatically created
3. Step three. (Add Kevoree Entity)
Now you can create Kevoree entities (components, channels, groups, kevscripts, ...) (File -> New -> Kevoree -> ...). we provide templates for Java and Xtend programming languages. (C++, C, Scala, Kotlin, should arrive soon).
If you select a new Java Component, you must provide a Java package and a Name for your component.
You will automatically get the following Java class.
4. Step four. (Edit Kevoree script)
We provide also two KevScript editor. One is a textual editor with completion. The second one is a graphical editor. To work with the graphical editor, the component definition must exist in your maven repository (do not forget to do a mvn install to push the definition in the repository. Do not also forget to include your maven component artefact (include mvn:org.kevoree.project:HelloWorlKevoree:latest) to be able to use it (add node0.hello : HelloWorldComponent)
5. Step five. (Run the Kevoree Script)
Now you can easily build a launcher for your kevscript.
- Select the project (do not forget the * to get all the available project).
- Select the kevscript to run
- Select the node name to start
You will get the log in the console
6. Step six. (Manage the runtime system)
You can ow open your chrome based browser (http://kwe.braindead.fr/) and manage your application.
7. Other stuffs. (Builder, preferences page)
We also provide a specific builder that automatically generate the model when the project changed.
We also create a preference page for Kevoree to set the Kevoree version you want to use. It is only for the plugin (builder, runner, ...) . The Kevoree version you use for a specific project is set within the pom.xml)
8. Import a Kevoree project.
If you have to import an existing Kevoree project, you can just import it as an existing maven project and add the Kevoree Nature (right clic on the project, configure -> add Kevoree Nature)
- Template for kevscript
- Improve completion on maven repo for kevscript
- junit test runner
- Improve preference panel with the default node name to run and a checkbox for deciding if we launch the web browser or not.