Our development environment consist of several build agents who builds the installer mediums. Today we had a compile error inside of install4j at one of the build agents. The class version didn't match with some custom classes. We found out that the installed jre on the build agent were a jre_1.6 x32 and a jre_1.7 x64. The project setting was set to create a x32 installer medium with a minimum java version of 1.7. Therefore the search algorithm of install4j (%JAVA_HOME% etc.) used the jre_1.6 x32 to compile the code.
**Now the question:** is it possible to configure the compile-jre during the maven build process? Maybe to modify the path of the config.xml from %User_Home%/.install4j5 to %INSTALL4J_HOME%/config?
The best solution for our environment would be to point the compile-jre to a jre, which will be extracted during the maven build (phase: process-resources) and which will be included later in the installer as the bundled jre for the application. Then we could be ensure that the application is compiled with the same jre as it will be used after installation. No matter how the build agent is configured (x64 or x32).
Hopefully the problem is understandable.
以上就是How to configure compile-jre on build agents?的详细内容，更多请关注web前端其它相关文章！