Automate version in .install4j file based on POM version

喜夏-厌秋 提交于 2019-12-11 14:49:37

问题


I am using Maven to automate build process of Install4j.

For every release product, POM version is updated. I want when pom version is updated Install4j version should be updated (under General Setting-> ApplicationInfo->Version).

How can i automate version in install4j file. So that version should always remain latest for my product installer.


回答1:


You can set the release parameter for the install4j compile target to set the version from the maven plugin. See

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

for more information.



来源:https://stackoverflow.com/questions/36418215/automate-version-in-install4j-file-based-on-pom-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!