[ 
http://jira.codehaus.org/browse/CONTINUUM-2424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=206544#action_206544
 ] 

Igor Grapp commented on CONTINUUM-2424:
---------------------------------------

Having JAVA_HOME set globally on the box is not something that will happen for 
granted. It could be just a domain policy for example. 

Usually I configure all my services to set JAVA_HOME in  locally the startup 
scripts, just because I like to have control over JVM settings and version.

> 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
>             Fix For: Backlog
>
>
> 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

        

Reply via email to