Build not using mirth.version from pom.xml
joshmc82 opened this issue · 2 comments
It appears that just updating mirth.version
in pom.xml is not sufficient. I also need to set plugin.mirthVersion
to match else it will always build against what is in plugin.mirthVersion
Steps to reproduce:
- Clone fresh copy of this repo
- Edit pom.xml in the root directory and set
mirth.version
to 4.1.1 - Save pom.xml
mvn install
mvn clean package
- navigate to target folder
- unzip plugintest.zip
- open plugintest/plugin.xml
- verify
mirthVersion
is not 4.1.1 as expected
https://github.com/kpalang/mirth-sample-plugin/search?q=mirth.version shows the issue. mirth.version
and plugin.mirthVersion
are both used interchangeably.
Also note that plugin.xml
ultimately accepts a comma separated list of supported MC versions. This may not be practical to map in maven though since maven wants one version to build its dependencies.
They are not interchangeable.
mirth.version
specifies the mirth version you are building against when pulling the maven dependencies.
plugin.mirthVersion
specifies what goes into the plugin.xml
, and it will accept a comma separated list of supported MC versions.