[ 
http://jira.codehaus.org/browse/CONTINUUM-2424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wendy Smoak updated CONTINUUM-2424:
-----------------------------------

    Fix Version/s: Backlog

I can't reproduce this on OS X.  I have no JAVA_HOME environment variable.  My 
PATH contains the full path to the Java bin directory.  I was able to add a 
Maven 2 Installation with this configuration.

I'll put this in the backlog for a while in case anyone wants to try to 
reproduce it on Windows, but I'd suggest just setting JAVA_HOME.

Is there a situation in which you would NOT want JAVA_HOME set on the machine 
that is running Continuum?


> 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