|
27 | 27 | <version>5.1.21</version> |
28 | 28 | <scope>runtime</scope> |
29 | 29 | </dependency> |
30 | | - <dependency> |
31 | | - <groupId>org.apache.cloudstack</groupId> |
32 | | - <artifactId>cloud-plugin-hypervisor-simulator</artifactId> |
33 | | - <version>${project.version}</version> |
34 | | - <scope>compile</scope> |
35 | | - </dependency> |
| 30 | + <dependency> |
| 31 | + <groupId>org.apache.cloudstack</groupId> |
| 32 | + <artifactId>cloud-plugin-hypervisor-simulator</artifactId> |
| 33 | + <version>${project.version}</version> |
| 34 | + <scope>compile</scope> |
| 35 | + </dependency> |
36 | 36 | </dependencies> |
37 | 37 | <build> |
38 | 38 | <defaultGoal>install</defaultGoal> |
| 39 | + <testOutputDirectory>target/db</testOutputDirectory> |
39 | 40 | </build> |
40 | 41 |
|
41 | 42 | <profiles> |
|
132 | 133 | <artifactId>cloud-server</artifactId> |
133 | 134 | <version>${project.version}</version> |
134 | 135 | </dependency> |
| 136 | + <dependency> |
| 137 | + <groupId>org.apache.cloudstack</groupId> |
| 138 | + <artifactId>cloud-server</artifactId> |
| 139 | + <version>${project.version}</version> |
| 140 | + </dependency> |
135 | 141 | </dependencies> |
136 | 142 | <executions> |
137 | 143 | <execution> |
|
143 | 149 | </execution> |
144 | 150 | </executions> |
145 | 151 | <configuration> |
146 | | - <includeProjectDependencies>false</includeProjectDependencies> |
| 152 | + <includeProjectDependencies>true</includeProjectDependencies> |
147 | 153 | <includePluginDependencies>true</includePluginDependencies> |
148 | 154 | <executableDependency> |
149 | 155 | <groupId>org.apache.cloudstack</groupId> |
150 | 156 | <artifactId>cloud-server</artifactId> |
151 | 157 | </executableDependency> |
| 158 | + |
152 | 159 | <mainClass>com.cloud.upgrade.DatabaseCreator</mainClass> |
| 160 | + <classpathScope>test</classpathScope> |
153 | 161 | <arguments> |
154 | 162 | <!-- db properties file --> |
155 | 163 | <argument>${project.parent.basedir}/utils/conf/db.properties</argument> |
|
170 | 178 | <argument>${basedir}/target/db/cloudbridge_offering_alter.sql</argument> |
171 | 179 | <!-- Seed the database --> |
172 | 180 | <argument>${basedir}/developer-prefill.sql</argument> |
173 | | - <!-- Do database upgrade--> |
| 181 | + <!-- Do database upgrade --> |
174 | 182 | <argument>com.cloud.upgrade.DatabaseUpgradeChecker</argument> |
175 | 183 | <argument>--database=cloud,usage,awsapi</argument> |
176 | 184 | <argument>--rootpassword=${db.root.password}</argument> |
|
0 commit comments