...
For convenience, a complete pom.xml is attached. The important parts are briefly explained in the comments.
The last parameter 'requiresRestart
' of the configuration block is particularly important if you want to protect your users from unexpected errors: It defines if SNAP asks for a restart after plugin installation. If this parameter is 'false' and no SNAP restart is done the user will run into an error when trying to launch the operator.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<groupId>com.acme.snap.examples</groupId> <!-- An ID which groups multiple artifacts (plugins) --> <artifactId>snap-engine-operator</artifactId> <!-- An ID for the artifact (plugin) --> <version>8.0.0-SNAPSHOT</version> <!-- The current version of the plugin --> <packaging>nbm</packaging> <!-- The value 'nbm' is mandatory to create a valid plugin for SNAP --> <name>SNAP Engine Operator Example</name> <!-- The name of the plugin --> <description>Example for a basic Operator module</description> <!-- A description of the plugin --> |
...