It's all about the answers!

Ask a question

Maven and Java home in build definition

Jesse Timbang (321615) | asked Aug 14 '12, 7:04 a.m.
edited Aug 14 '12, 8:16 a.m. by Spencer Murata (2.2k111969)
When creating a maven build definition, can we specify the following?

Maven home = %MAVEN_HOME%
Java home = %JAVA_HOME%

Jesse Timbang commented Aug 14 '12, 7:32 a.m.
Okay, I've tried it and it doesn't work. Is there any way of parameterizing these two fields so that when the build engine changes, one does not have to memorize the exact path of the home directories?

Accepted answer

Spencer Murata (2.2k111969) | answered Aug 14 '12, 8:16 a.m.
 You can associate build properties to the specific engine, so you can define MAVEN_HOME at the engine level, so whenever a build definition uses that specific engine the property is already defined for the engine.  The engine properties are at the bottom of the Overview contributor of the engine.

Ralph Schoon selected this answer as the correct answer

Jesse Timbang commented Aug 15 '12, 6:25 a.m.
Yup that works thank you

Your answer

Register or to post your answer.