mirth-plugin-maven-plugin
is now archived in favor ofmirth-plugin-maven-plugin-kt
, a Kotlin rewrite with some improvements.
A maven plugin to simplify and automate NextGen Connect plugin development.
<repository>
<id>nexus</id>
<url>https://maven.kaurpalang.com/repository/maven-public/</url>
</repository>
<dependency>
<groupId>com.kaurpalang</groupId>
<artifactId>mirth-plugin-maven-plugin</artifactId>
<version>1.0.2-SNAPSHOT</version>
</dependency>
See Sample project on Github
Annotated class will be generated as a <string>
entry.
<serverClasses>
<string>com.kaurpalang.mirthpluginsample.server.ServerPlugin</string>
<string>com.kaurpalang.mirthpluginsample.server.ServerPlugin2</string>
</serverClasses>
Annotated class will be generated as a <string>
entry.
<clientClasses>
<string>com.kaurpalang.mirthpluginsample.client.ClientPlugin</string>
<string>com.kaurpalang.mirthpluginsample.client.ClientPlugin2</string>
</clientClasses>
Annotated class will be generated as a <apiProvider>
entry.
<apiProvider name="com.kaurpalang.mirthpluginsample.shared.ApiProviderSample" type="SERVLET_INTERFACE"/>
All libraries inside pluginroot/libs/runtime/{type}
are packaged into the .zip
archive into libs
directory.
<library path="libs/sample-external.jar" type="{type}"/>
Purpose is to generate a file to store all found classes before annotation processing.
Parameter | Description | Default |
---|---|---|
<aggregatorPath> | Specifies where to create aggregation file | distribution/aggregated.json |
Purpose is to generate the actual plugin.xml file.
Parameter | Description | Default |
---|---|---|
<name> | Plugin's name | Default plugin |
<author> | Plugin's author | John Doe |
<pluginVersion> | Plugin version | 42 |
<mirthVersion> | Mirth versions this plugin is compatible with | 3.10.1 |
<url> | Plugin's website | https://github.com/kpalang/mirth-sample-plugin |
<description> | Plugin's description | A sample Mirth plugin to showcase my Maven plugin |
<path> | The name of the directory that will be extracted into Mirth's extensions directory | sampleplugin |
<aggregatorPath> | Aggregation file location | distribution/aggregated.json |
<outputPath> | Specifies where to put generated plugin.xml | ${project.basedir}/plugin.xml |