wiki:BuildASimplePlugin

Version 1 (modified by jri, 9 years ago) (diff)

--

Build a simple plugin

This page describes how you can build a very simple plugin. This demo plugin just creates a new topic type.

Once installed in DeepaMehta the topic type will appear in the create menu, so you can create instances. And you will be able to fulltext search for the instances.

Developing such a simple plugin involves no Java coding at all. All is declarative, mainly in JSON format.

Of course the topic type could be created interactively as well, by using DeepaMehta's type editor. However, being packaged as a plugin your type definitions become deployable by other DeepaMehta users.

Preparation

All you need is Java 1.6 and Maven (version 3 is recommended) installed.

You don't need a DeepaMehta installation. The DeepaMehta build system will provision a DeepaMehta installation just for your plugin.

Setup the directory structure

demo-plugin-1/
    pom.xml
    src/
        main/
            resources/
                migrations/
                    migration1.json
                plugin.properties