/mirth-sample-plugin

A sample NextGen Connect plugin.

Primary LanguageJavaApache License 2.0Apache-2.0

A sample NextGen connect Plugin project

A sample NextGen Connect plugin.

This repository is used in this guide on writing Mirth plugins.

Installation

  1. Install Java
  2. Install Maven
  3. Run git clone https://github.com/kpalang/mirth-sample-plugin
  4. Navigate to mirth-sample-plugin/
  5. Run ./build.sh to verify the build works
  6. Try to install the sample plugin by getting the sampleplugin.zip archive from your project root

Usage

Tip

This repository is best used as a template by clicking the green "Use this template" button in the top right corner. Using as a template makes your repository not pick up the changes in the base repo thus avoiding file mismatches.

This repository showcases use of mirth-plugin-maven-plugin-kt to generate plugin.xml file!

  • Any external libraries that you might want to use in the plugin at runtime, go into libs/runtime/{type}
  • Any external libraries that you might want to use at compiletime, go into libs/compiletime/{type}

You can choose between two methods when signing your plugin jarfiles

Method 1 - maven-jarsigner-plugin in pom.xml

Using the maven-jarsigner-plugin requires you uncomment this section here. Additionally, you must comment out or remove the Method 2 section in build.sh

Method 2 - external script

When using external signing, leave the section in pom.xml commented or delete it and comment out or remove the Method 1 section in build.sh


Pull requests are always welcome