RegisterLog In to Jazz.net dW

It's all about the answers!

Ask a question

Maven and Java home in build definition


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

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



Comments
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


link
Spencer Murata (1.8k11923) | answered Aug 14 '12, 8:16 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
 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.

~Spencer
Ralph Schoon selected this answer as the correct answer

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

Your answer


Register or log in to post your answer.