It's all about the answers!

Ask a question

Maven and Java home in build definition


Jesse Timbang (3211619) | asked Aug 14 '12, 7:04 a.m.
edited Aug 14 '12, 8:16 a.m. by Spencer Murata (2.3k115971)
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


permanent link
Spencer Murata (2.3k115971) | 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 to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.