基于POM版本在.install4j文件中自动化版本

时间:2016-04-05 05:57:44

标签: maven-3 pom.xml install4j

我正在使用Maven来自动化Install4j的构建过程。

对于每个发布产品,都会更新POM版本。我希望当pom版本更新时,应更新Install4j版本(在General Setting-> ApplicationInfo-> Version下)。

如何在install4j文件中自动化版本。因此,对于我的产品安装程序,该版本应始终保持最新状态。

1 个答案:

答案 0 :(得分:1)

您可以为install4j编译目标设置release参数,以便从maven插件中设置版本。参见

http://sonatype.github.io/install4j-support/install4j-maven-plugin/compile-mojo.html

了解更多信息。