[
http://jira.codehaus.org/browse/CONTINUUM-2424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=205396#action_205396
]
Wendy Smoak commented on CONTINUUM-2424:
----------------------------------------
What do you mean by the "java.home" system property? Where is that value
coming from?
Maybe having the exact steps to reproduce this would help.
> Getting ".../mvn version return code 1" error when trying to add maven2
> installation.
> -------------------------------------------------------------------------------------
>
> Key: CONTINUUM-2424
> URL: http://jira.codehaus.org/browse/CONTINUUM-2424
> Project: Continuum
> Issue Type: Bug
> Affects Versions: 1.3.4
> Environment: Windows server 2003 sp2
> Reporter: Igor Grapp
> Priority: Minor
>
> Getting ".../mvn version return code 1" error when trying to add maven2
> installation.
> After quick debugging session, I discovered that this happens due to
> JAVA_HOME was not set as a system env variable and "mvn" script requires it
> to be set before running.
> I guess that "JAVA_HOME" env variable need to explicitly set in
> org.apache.maven.continuum.web.validator.InstallationValidator with value
> taken from "java.home" system property.
> Also, I would recommend to output stderr stream to the log during error,
> since this will clearly indicate an error with no need for debugging session.
> Regards,
> Igor Grapp.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira