Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B22E3E712 for ; Tue, 19 Feb 2013 15:37:13 +0000 (UTC) Received: (qmail 44441 invoked by uid 500); 19 Feb 2013 15:37:13 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 44244 invoked by uid 500); 19 Feb 2013 15:37:13 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 44225 invoked by uid 99); 19 Feb 2013 15:37:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2013 15:37:12 +0000 Date: Tue, 19 Feb 2013 15:37:12 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: cloudstack-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-1318) Failed to parse variable when build devcloud MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-1318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13581371#comment-13581371 ] ASF subversion and git services commented on CLOUDSTACK-1318: ------------------------------------------------------------- Commit 07102fc8ab37d2688f88c732c337bac34224a5c5 in branch refs/heads/master from [~gavinlee] [ https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;h=07102fc ] CLOUDSTACK-1318:Fix build devcloud issue > Failed to parse variable when build devcloud > -------------------------------------------- > > Key: CLOUDSTACK-1318 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1318 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Install and Setup > Affects Versions: 4.2.0 > Environment: mac osx 10.8, devcloud > Reporter: gavin lee > Fix For: 4.2.0 > > Original Estimate: 2h > Remaining Estimate: 2h > > On master branch, when deploy db for devcloud, the exception shows following: > bash$mvn -pl developer,tools/devcloud -Ddeploydb -P developer > [ERROR] Failed to execute goal org.codehaus.mojo:sql-maven-plugin:1.5:execute (create-schema) on project cloud-devcloud: Cannot load connection class because of underlying exception: 'java.lang.NumberFormatException: For input string: "${db.cloud.port}"'. -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sql-maven-plugin:1.5:execute (create-schema) on project cloud-devcloud: Cannot load connection class because of underlying exception: 'java.lang.NumberFormatException: For input string: "${db.cloud.port}"'. > The root cause is the variable to find db.properties should be ${project.parent.parent.basedir} in devcloud pom.xml, the diff: > diff --git a/tools/devcloud/pom.xml b/tools/devcloud/pom.xml > index b3fd79b..f45a86d 100644 > --- a/tools/devcloud/pom.xml > +++ b/tools/devcloud/pom.xml > @@ -62,8 +62,8 @@ > > > > - ${project.parent.basedir}/utils/conf/db.properties > - ${project.parent.basedir}/utils/conf/db.properties.override > + ${project.parent.parent.basedir}/utils/conf/db.properties > + ${project.parent.parent.basedir}/utils/conf/db.properties.override > > true > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira