continuum-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Grapp (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (CONTINUUM-2424) Getting ".../mvn version return code 1" error when trying to add maven2 installation.
Date Tue, 05 Jan 2010 05:04:55 GMT
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

        

Mime
View raw message