|
|
## CHESS Plugin Creation
|
|
|
|
|
|
The correct procedure to write a compliant plugin should include these steps:
|
|
|
- create a new plugin using the Eclipse wizard **Plug-in Project**. The plugin should be located in the correct repository;
|
|
|
- add the Maven support, right clicking on the plugin name and selecting **Configure/Convert to Maven Project**. Accept the proposed fields, they will be modified in the next step;
|
|
|
- look for the generated file `pom.xml`: edit it by looking at other plugins, in order to share the same hierarchy and configuration;
|
|
|
- if the plugin is not related to a particular group of tasks, locate the file `org.polarsys.chess.parent\bundles\pom.xml` or a more specific parent `pom.xml`. Add the new plugin as `module`. This will include the plugin in the Maven reactor and it will be compiled with others;
|
|
|
- if the plugin should be part of the product, it has to be included in a feature. There are different features that group the plugins by type. Features can be found in the folder `org.polarsys.chess.parent\features`. Select the correct feature and add the plugin in the **Included Plug-ins** section;
|
|
|
|
|
|
**Note:** tests and JUnit tests should not be included in plugins that will be distributed. They should be located in dedicate plugins that will not be added into the features. |