Return-Path: Delivered-To: apmail-continuum-issues-archive@www.apache.org Received: (qmail 33009 invoked from network); 5 Jan 2010 05:05:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Jan 2010 05:05:27 -0000 Received: (qmail 61828 invoked by uid 500); 5 Jan 2010 05:05:27 -0000 Delivered-To: apmail-continuum-issues-archive@continuum.apache.org Received: (qmail 61775 invoked by uid 500); 5 Jan 2010 05:05:26 -0000 Mailing-List: contact issues-help@continuum.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@continuum.apache.org Delivered-To: mailing list issues@continuum.apache.org Received: (qmail 61765 invoked by uid 99); 5 Jan 2010 05:05:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jan 2010 05:05:26 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.246.2.115] (HELO codehaus01.managed.contegix.com) (63.246.2.115) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jan 2010 05:05:16 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 7F71314A8245 for ; Mon, 4 Jan 2010 23:04:55 -0600 (CST) Date: Mon, 4 Jan 2010 23:04:55 -0600 (CST) From: "Igor Grapp (JIRA)" To: issues@continuum.apache.org Message-ID: <9951010.52723.1262667895232.JavaMail.haus-jira@codehaus01.managed.contegix.com> Subject: [jira] Created: (CONTINUUM-2424) Getting ".../mvn version return code 1" error when trying to add maven2 installation. MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 4e90ceb663894a42f12c0e28abbab431 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