incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "gavin lee (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CLOUDSTACK-1318) Failed to parse variable when build devcloud
Date Wed, 20 Feb 2013 07:17:14 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-1318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13582007#comment-13582007
] 

gavin lee edited comment on CLOUDSTACK-1318 at 2/20/13 7:15 AM:
----------------------------------------------------------------

Hi, Rohit
I tried on 4.1, not have such issue. 
The fix should not be cherry-picked for 4.1

                
      was (Author: gavinlee):
    Hi, Rohit
I tried on 4.1, not have such issue. 
The fix should not to cherry-pick for 4.1

                  
> 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 @@
>                  </goals>
>                  <configuration>
>                    <files>
> -                    <file>${project.parent.basedir}/utils/conf/db.properties</file>
> -                    <file>${project.parent.basedir}/utils/conf/db.properties.override</file>
> +                    <file>${project.parent.parent.basedir}/utils/conf/db.properties</file>
> +                    <file>${project.parent.parent.basedir}/utils/conf/db.properties.override</file>
>                    </files>
>                    <quiet>true</quiet>
>                  </configuration>

--
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

Mime
View raw message