You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by wi...@apache.org on 2013/02/25 15:44:57 UTC

[13/28] git commit: refs/heads/qemu-img - make the create database work

make the create database work


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/1c77ae62
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/1c77ae62
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/1c77ae62

Branch: refs/heads/qemu-img
Commit: 1c77ae62374f2d1a064726bb7bcf1814a0c0b1ff
Parents: ebcf6b1
Author: Alex Huang <al...@citrix.com>
Authored: Sat Feb 23 19:06:49 2013 -0800
Committer: Alex Huang <al...@citrix.com>
Committed: Sat Feb 23 19:07:22 2013 -0800

----------------------------------------------------------------------
 developer/pom.xml |   24 ++++++++++++++++--------
 1 files changed, 16 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1c77ae62/developer/pom.xml
----------------------------------------------------------------------
diff --git a/developer/pom.xml b/developer/pom.xml
index a20200f..daaa6e3 100644
--- a/developer/pom.xml
+++ b/developer/pom.xml
@@ -27,15 +27,16 @@
       <version>5.1.21</version>
       <scope>runtime</scope>
     </dependency>
-      <dependency>
-          <groupId>org.apache.cloudstack</groupId>
-          <artifactId>cloud-plugin-hypervisor-simulator</artifactId>
-          <version>${project.version}</version>
-          <scope>compile</scope>
-      </dependency>
+    <dependency>
+      <groupId>org.apache.cloudstack</groupId>
+      <artifactId>cloud-plugin-hypervisor-simulator</artifactId>
+      <version>${project.version}</version>
+      <scope>compile</scope>
+    </dependency>
   </dependencies>
   <build>
     <defaultGoal>install</defaultGoal>
+    <testOutputDirectory>target/db</testOutputDirectory>
   </build>
 
   <profiles>
@@ -132,6 +133,11 @@
                 <artifactId>cloud-server</artifactId>
                 <version>${project.version}</version>
               </dependency>
+              <dependency>
+                <groupId>org.apache.cloudstack</groupId>
+                <artifactId>cloud-server</artifactId>
+                <version>${project.version}</version>
+              </dependency>
             </dependencies>
             <executions>
               <execution>
@@ -143,13 +149,15 @@
               </execution>
             </executions>
             <configuration>
-              <includeProjectDependencies>false</includeProjectDependencies>
+              <includeProjectDependencies>true</includeProjectDependencies>
               <includePluginDependencies>true</includePluginDependencies>
               <executableDependency>
                 <groupId>org.apache.cloudstack</groupId>
                 <artifactId>cloud-server</artifactId>
               </executableDependency>
+
               <mainClass>com.cloud.upgrade.DatabaseCreator</mainClass>
+              <classpathScope>test</classpathScope>
               <arguments>
                 <!-- db properties file -->
                 <argument>${project.parent.basedir}/utils/conf/db.properties</argument>
@@ -170,7 +178,7 @@
                 <argument>${basedir}/target/db/cloudbridge_offering_alter.sql</argument>
                 <!-- Seed the database -->
                 <argument>${basedir}/developer-prefill.sql</argument>
-                <!-- Do database upgrade-->
+                <!-- Do database upgrade -->
                 <argument>com.cloud.upgrade.DatabaseUpgradeChecker</argument>
                 <argument>--database=cloud,usage,awsapi</argument>
                 <argument>--rootpassword=${db.root.password}</argument>