mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
simulator: removing cyclic dependency from simulator
The database creator caused a cyclic dependecny in the simulator which is removed with this commit. Additionally the simulator profile is now merged with developer profile and a test for server health is included Steps to run: $ mvn -Pdeveloper clean install $ mvn -Pdeveloper -pl developer -Ddeploydb $ mvn -Pdeveloper -pl developer -Ddeploydb-simulator $ mvn -pl client jetty:run To deploy an adv. zone and test the server health: $ mvn -Pdeveloper,marvin -Dmarvin.config=`find . -name simulator.cfg` -pl :cloud-marvin test Conflicts: pom.xml Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
parent
4faad73d6c
commit
792db8b5cc
@ -219,6 +219,11 @@
|
|||||||
<artifactId>cloud-engine-storage-volume</artifactId>
|
<artifactId>cloud-engine-storage-volume</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.cloudstack</groupId>
|
||||||
|
<artifactId>cloud-plugin-hypervisor-simulator</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<defaultGoal>install</defaultGoal>
|
<defaultGoal>install</defaultGoal>
|
||||||
@ -481,21 +486,6 @@
|
|||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
</build>
|
</build>
|
||||||
<profiles>
|
<profiles>
|
||||||
<profile>
|
|
||||||
<id>simulator</id>
|
|
||||||
<activation>
|
|
||||||
<property>
|
|
||||||
<name>simulator</name>
|
|
||||||
</property>
|
|
||||||
</activation>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.cloudstack</groupId>
|
|
||||||
<artifactId>cloud-plugin-hypervisor-simulator</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</profile>
|
|
||||||
<profile>
|
<profile>
|
||||||
<id>netapp</id>
|
<id>netapp</id>
|
||||||
<activation>
|
<activation>
|
||||||
|
|||||||
@ -215,11 +215,9 @@
|
|||||||
<property name="name" value="KVM Agent"/>
|
<property name="name" value="KVM Agent"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!--
|
|
||||||
<bean id="SimulatorDiscoverer" class="com.cloud.resource.SimulatorDiscoverer">
|
<bean id="SimulatorDiscoverer" class="com.cloud.resource.SimulatorDiscoverer">
|
||||||
<property name="name" value="KVM Agent"/>
|
<property name="name" value="Simulator Agent"/>
|
||||||
</bean>
|
</bean>
|
||||||
-->
|
|
||||||
|
|
||||||
|
|
||||||
<bean id="BareMetalDiscoverer" class="com.cloud.baremetal.manager.BareMetalDiscoverer">
|
<bean id="BareMetalDiscoverer" class="com.cloud.baremetal.manager.BareMetalDiscoverer">
|
||||||
@ -318,11 +316,9 @@
|
|||||||
<property name="name" value="OvmGuru"/>
|
<property name="name" value="OvmGuru"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!--
|
|
||||||
<bean id="SimulatorGuru" class="com.cloud.simulator.SimulatorGuru">
|
<bean id="SimulatorGuru" class="com.cloud.simulator.SimulatorGuru">
|
||||||
<property name="name" value="SimulatorGuru"/>
|
<property name="name" value="SimulatorGuru"/>
|
||||||
</bean>
|
</bean>
|
||||||
-->
|
|
||||||
|
|
||||||
<bean id="BaremetalGuru" class="com.cloud.baremetal.manager.BareMetalGuru">
|
<bean id="BaremetalGuru" class="com.cloud.baremetal.manager.BareMetalGuru">
|
||||||
<property name="name" value="BaremetalGuru"/>
|
<property name="name" value="BaremetalGuru"/>
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
language governing permissions and limitations under the License. -->
|
language governing permissions and limitations under the License. -->
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>cloud-developer</artifactId>
|
<artifactId>cloud-developer</artifactId>
|
||||||
<name>Apache CloudStack Developer Tools</name>
|
<name>Apache CloudStack Developer Tools</name>
|
||||||
@ -21,25 +21,98 @@
|
|||||||
<version>4.2.0-SNAPSHOT</version>
|
<version>4.2.0-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
<!-- specify the dependent jdbc driver here -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>mysql</groupId>
|
<groupId>mysql</groupId>
|
||||||
<artifactId>mysql-connector-java</artifactId>
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
<version>5.1.21</version>
|
<version>${cs.mysql.version}</version>
|
||||||
<scope>runtime</scope>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>commons-dbcp</groupId>
|
||||||
|
<artifactId>commons-dbcp</artifactId>
|
||||||
|
<version>${cs.dbcp.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>commons-pool</groupId>
|
||||||
|
<artifactId>commons-pool</artifactId>
|
||||||
|
<version>${cs.pool.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jasypt</groupId>
|
||||||
|
<artifactId>jasypt</artifactId>
|
||||||
|
<version>${cs.jasypt.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.cloudstack</groupId>
|
||||||
|
<artifactId>cloud-utils</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.cloudstack</groupId>
|
||||||
|
<artifactId>cloud-server</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.cloudstack</groupId>
|
||||||
|
<artifactId>cloud-plugin-hypervisor-simulator</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.cloudstack</groupId>
|
|
||||||
<artifactId>cloud-plugin-hypervisor-simulator</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
<scope>compile</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<defaultGoal>install</defaultGoal>
|
<defaultGoal>install</defaultGoal>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>properties-maven-plugin</artifactId>
|
||||||
|
<version>1.0-alpha-2</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>initialize</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>read-project-properties</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<files>
|
||||||
|
<file>${basedir}/../utils/conf/db.properties</file>
|
||||||
|
<file>${basedir}/../utils/conf/db.properties.override</file>
|
||||||
|
</files>
|
||||||
|
<quiet>true</quiet>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
|
<version>1.7</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>generate-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<target>
|
||||||
|
<filter token="VERSION" value="${project.version}"/>
|
||||||
|
<copy todir="${basedir}/target/db" filtering="true">
|
||||||
|
<fileset dir="${basedir}/../setup/db/"/>
|
||||||
|
</copy>
|
||||||
|
<copy todir="${basedir}/target/db" filtering="true">
|
||||||
|
<fileset
|
||||||
|
dir="${basedir}/../awsapi-setup/db/mysql/">
|
||||||
|
<include name="**/*.sql"/>
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
</target>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
<profile>
|
<profile>
|
||||||
|
<!-- default deploydb property -->
|
||||||
<id>deploydb</id>
|
<id>deploydb</id>
|
||||||
<activation>
|
<activation>
|
||||||
<property>
|
<property>
|
||||||
@ -48,91 +121,10 @@
|
|||||||
</activation>
|
</activation>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>properties-maven-plugin</artifactId>
|
|
||||||
<version>1.0-alpha-2</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>initialize</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>read-project-properties</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<files>
|
|
||||||
<file>${project.parent.basedir}/utils/conf/db.properties</file>
|
|
||||||
<file>${project.parent.basedir}/utils/conf/db.properties.override</file>
|
|
||||||
</files>
|
|
||||||
<quiet>true</quiet>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-antrun-plugin</artifactId>
|
|
||||||
<version>1.7</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>generate-resources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>run</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<target>
|
|
||||||
<filter token="VERSION" value="${project.version}" />
|
|
||||||
<copy todir="${basedir}/target/db" filtering="true">
|
|
||||||
<fileset dir="${project.basedir}/../setup/db/" />
|
|
||||||
</copy>
|
|
||||||
<copy todir="${basedir}/target/db" filtering="true">
|
|
||||||
<fileset
|
|
||||||
dir="${project.basedir}/../awsapi-setup/db/mysql/">
|
|
||||||
<include name="**/*.sql" />
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
</target>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<!-- DatabaseCreator driver here -->
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>exec-maven-plugin</artifactId>
|
<artifactId>exec-maven-plugin</artifactId>
|
||||||
<version>1.2.1</version>
|
<version>1.2.1</version>
|
||||||
<dependencies>
|
|
||||||
<!-- specify the dependent jdbc driver here -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>mysql</groupId>
|
|
||||||
<artifactId>mysql-connector-java</artifactId>
|
|
||||||
<version>${cs.mysql.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>commons-dbcp</groupId>
|
|
||||||
<artifactId>commons-dbcp</artifactId>
|
|
||||||
<version>${cs.dbcp.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>commons-pool</groupId>
|
|
||||||
<artifactId>commons-pool</artifactId>
|
|
||||||
<version>${cs.pool.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.jasypt</groupId>
|
|
||||||
<artifactId>jasypt</artifactId>
|
|
||||||
<version>${cs.jasypt.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.cloudstack</groupId>
|
|
||||||
<artifactId>cloud-utils</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.cloudstack</groupId>
|
|
||||||
<artifactId>cloud-server</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<phase>process-resources</phase>
|
<phase>process-resources</phase>
|
||||||
@ -143,17 +135,11 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
<configuration>
|
<configuration>
|
||||||
<includeProjectDependencies>false</includeProjectDependencies>
|
|
||||||
<includePluginDependencies>true</includePluginDependencies>
|
|
||||||
<executableDependency>
|
|
||||||
<groupId>org.apache.cloudstack</groupId>
|
|
||||||
<artifactId>cloud-server</artifactId>
|
|
||||||
</executableDependency>
|
|
||||||
<mainClass>com.cloud.upgrade.DatabaseCreator</mainClass>
|
<mainClass>com.cloud.upgrade.DatabaseCreator</mainClass>
|
||||||
<arguments>
|
<arguments>
|
||||||
<!-- db properties file -->
|
<!-- db properties file -->
|
||||||
<argument>${project.parent.basedir}/utils/conf/db.properties</argument>
|
<argument>${basedir}/../utils/conf/db.properties</argument>
|
||||||
<argument>${project.parent.basedir}/utils/conf/db.properties.override</argument>
|
<argument>${basedir}/../utils/conf/db.properties.override</argument>
|
||||||
<!-- Create default schema and db table views -->
|
<!-- Create default schema and db table views -->
|
||||||
<argument>${basedir}/target/db/create-schema.sql</argument>
|
<argument>${basedir}/target/db/create-schema.sql</argument>
|
||||||
<argument>${basedir}/target/db/create-schema-premium.sql</argument>
|
<argument>${basedir}/target/db/create-schema-premium.sql</argument>
|
||||||
@ -181,7 +167,59 @@
|
|||||||
<systemProperties>
|
<systemProperties>
|
||||||
<systemProperty>
|
<systemProperty>
|
||||||
<key>catalina.home</key>
|
<key>catalina.home</key>
|
||||||
<value>${project.parent.basedir}/utils</value>
|
<value>${basedir}/../utils</value>
|
||||||
|
</systemProperty>
|
||||||
|
<systemProperty>
|
||||||
|
<key>paths.script</key>
|
||||||
|
<value>${basedir}/target/db</value>
|
||||||
|
</systemProperty>
|
||||||
|
</systemProperties>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<!-- simulator deploydb property -->
|
||||||
|
<id>deploydb-simulator</id>
|
||||||
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>deploydb-simulator</name>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>exec-maven-plugin</artifactId>
|
||||||
|
<version>1.2.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>process-resources</phase>
|
||||||
|
<id>create-schema-simulator</id>
|
||||||
|
<goals>
|
||||||
|
<goal>java</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<mainClass>com.cloud.upgrade.DatabaseCreator</mainClass>
|
||||||
|
<arguments>
|
||||||
|
<!-- db properties file -->
|
||||||
|
<argument>${basedir}/../utils/conf/db.properties</argument>
|
||||||
|
<argument>${basedir}/../utils/conf/db.properties.override</argument>
|
||||||
|
<!-- simulator sql files -->
|
||||||
|
<argument>${basedir}/target/db/create-schema-simulator.sql</argument>
|
||||||
|
<argument>${basedir}/target/db/templates.simulator.sql</argument>
|
||||||
|
<!-- upgrade -->
|
||||||
|
<argument>com.cloud.upgrade.DatabaseUpgradeChecker</argument>
|
||||||
|
<argument>--database=simulator</argument>
|
||||||
|
<argument>--rootpassword=${db.root.password}</argument>
|
||||||
|
</arguments>
|
||||||
|
<systemProperties>
|
||||||
|
<systemProperty>
|
||||||
|
<key>catalina.home</key>
|
||||||
|
<value>${basedir}/../utils</value>
|
||||||
</systemProperty>
|
</systemProperty>
|
||||||
<systemProperty>
|
<systemProperty>
|
||||||
<key>paths.script</key>
|
<key>paths.script</key>
|
||||||
@ -194,4 +232,4 @@
|
|||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
113
pom.xml
113
pom.xml
@ -182,7 +182,6 @@
|
|||||||
<version>${cs.junit.version}</version>
|
<version>${cs.junit.version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework</groupId>
|
<groupId>org.springframework</groupId>
|
||||||
<artifactId>spring-core</artifactId>
|
<artifactId>spring-core</artifactId>
|
||||||
@ -222,14 +221,12 @@
|
|||||||
<version>1.9.5</version>
|
<version>1.9.5</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework</groupId>
|
<groupId>org.springframework</groupId>
|
||||||
<artifactId>spring-test</artifactId>
|
<artifactId>spring-test</artifactId>
|
||||||
<version>${org.springframework.version}</version>
|
<version>${org.springframework.version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.aspectj</groupId>
|
<groupId>org.aspectj</groupId>
|
||||||
<artifactId>aspectjrt</artifactId>
|
<artifactId>aspectjrt</artifactId>
|
||||||
@ -276,7 +273,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
</pluginExecutionFilter>
|
</pluginExecutionFilter>
|
||||||
<action>
|
<action>
|
||||||
<ignore />
|
<ignore/>
|
||||||
</action>
|
</action>
|
||||||
</pluginExecution>
|
</pluginExecution>
|
||||||
</pluginExecutions>
|
</pluginExecutions>
|
||||||
@ -509,113 +506,5 @@
|
|||||||
<module>vmware-base</module>
|
<module>vmware-base</module>
|
||||||
</modules>
|
</modules>
|
||||||
</profile>
|
</profile>
|
||||||
<profile>
|
|
||||||
<id>simulator</id>
|
|
||||||
<activation>
|
|
||||||
<property>
|
|
||||||
<name>deploydb-simulator</name>
|
|
||||||
</property>
|
|
||||||
</activation>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>properties-maven-plugin</artifactId>
|
|
||||||
<version>1.0-alpha-2</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>initialize</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>read-project-properties</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<files>
|
|
||||||
<file>${project.basedir}/utils/conf/db.properties</file>
|
|
||||||
<file>${project.basedir}/utils/conf/db.properties.override</file>
|
|
||||||
</files>
|
|
||||||
<quiet>true</quiet>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<!-- DatabaseCreator driver here -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>exec-maven-plugin</artifactId>
|
|
||||||
<version>1.2.1</version>
|
|
||||||
<dependencies>
|
|
||||||
<!-- specify the dependent jdbc driver here -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>mysql</groupId>
|
|
||||||
<artifactId>mysql-connector-java</artifactId>
|
|
||||||
<version>${cs.mysql.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>commons-dbcp</groupId>
|
|
||||||
<artifactId>commons-dbcp</artifactId>
|
|
||||||
<version>${cs.dbcp.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>commons-pool</groupId>
|
|
||||||
<artifactId>commons-pool</artifactId>
|
|
||||||
<version>${cs.pool.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.jasypt</groupId>
|
|
||||||
<artifactId>jasypt</artifactId>
|
|
||||||
<version>${cs.jasypt.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.cloudstack</groupId>
|
|
||||||
<artifactId>cloud-utils</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.cloudstack</groupId>
|
|
||||||
<artifactId>cloud-server</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>process-resources</phase>
|
|
||||||
<id>create-schema</id>
|
|
||||||
<goals>
|
|
||||||
<goal>java</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<configuration>
|
|
||||||
<includeProjectDependencies>false</includeProjectDependencies>
|
|
||||||
<includePluginDependencies>true</includePluginDependencies>
|
|
||||||
<executableDependency>
|
|
||||||
<groupId>org.apache.cloudstack</groupId>
|
|
||||||
<artifactId>cloud-server</artifactId>
|
|
||||||
</executableDependency>
|
|
||||||
<mainClass>com.cloud.upgrade.DatabaseCreator</mainClass>
|
|
||||||
<arguments>
|
|
||||||
<!-- db properties file -->
|
|
||||||
<argument>${project.basedir}/utils/conf/db.properties</argument>
|
|
||||||
<argument>${project.basedir}/utils/conf/db.properties.override</argument>
|
|
||||||
<!-- simulator sql files -->
|
|
||||||
<argument>${basedir}/target/db/create-schema-simulator.sql</argument>
|
|
||||||
<argument>${basedir}/target/db/templates.simulator.sql</argument>
|
|
||||||
<!-- database upgrade -->
|
|
||||||
<argument>com.cloud.upgrade.DatabaseUpgradeChecker</argument>
|
|
||||||
<argument>--database=simulator</argument>
|
|
||||||
<argument>--rootpassword=${db.root.password}</argument>
|
|
||||||
<!-- enable verbosity by -v or dash-dash-verbose -->
|
|
||||||
</arguments>
|
|
||||||
<systemProperties>
|
|
||||||
<systemProperty>
|
|
||||||
<key>catalina.home</key>
|
|
||||||
<value>${project.basedir}/utils</value>
|
|
||||||
</systemProperty>
|
|
||||||
</systemProperties>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</profile>
|
|
||||||
</profiles>
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@ -123,6 +123,7 @@ known_categories = {
|
|||||||
'Pool': 'Pool',
|
'Pool': 'Pool',
|
||||||
'VPC': 'VPC',
|
'VPC': 'VPC',
|
||||||
'PrivateGateway': 'VPC',
|
'PrivateGateway': 'VPC',
|
||||||
|
'Simulator': 'simulator',
|
||||||
'StaticRoute': 'VPC',
|
'StaticRoute': 'VPC',
|
||||||
'Tags': 'Resource tags',
|
'Tags': 'Resource tags',
|
||||||
'NiciraNvpDevice': 'Nicira NVP',
|
'NiciraNvpDevice': 'Nicira NVP',
|
||||||
|
|||||||
@ -9,112 +9,118 @@
|
|||||||
OF ANY KIND, either express or implied. See the License for the specific
|
OF ANY KIND, either express or implied. See the License for the specific
|
||||||
language governing permissions and limitations under the License. -->
|
language governing permissions and limitations under the License. -->
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>cloud-marvin</artifactId>
|
<artifactId>cloud-marvin</artifactId>
|
||||||
<name>Apache CloudStack marvin</name>
|
<name>Apache CloudStack marvin</name>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.apache.cloudstack</groupId>
|
<groupId>org.apache.cloudstack</groupId>
|
||||||
<artifactId>cloud-tools</artifactId>
|
<artifactId>cloud-tools</artifactId>
|
||||||
<version>4.2.0-SNAPSHOT</version>
|
<version>4.2.0-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<build>
|
<build>
|
||||||
<defaultGoal>install</defaultGoal>
|
<defaultGoal>install</defaultGoal>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-antrun-plugin</artifactId>
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
<version>1.7</version>
|
<version>1.7</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>clean</id>
|
<id>clean</id>
|
||||||
<phase>clean</phase>
|
<phase>clean</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>run</goal>
|
<goal>run</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<target>
|
<target>
|
||||||
<delete dir="marvin/cloudstackAPI"/>
|
<delete dir="marvin/cloudstackAPI"/>
|
||||||
<echo>Deleting ${project.artifactId} API sources</echo>
|
<echo>Deleting ${project.artifactId} API sources</echo>
|
||||||
</target>
|
</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>exec-maven-plugin</artifactId>
|
<artifactId>exec-maven-plugin</artifactId>
|
||||||
<version>1.2.1</version>
|
<version>1.2.1</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>compile</id>
|
<id>compile</id>
|
||||||
<phase>compile</phase>
|
<phase>compile</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>exec</goal>
|
<goal>exec</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<workingDirectory>${basedir}/marvin</workingDirectory>
|
<workingDirectory>${basedir}/marvin</workingDirectory>
|
||||||
<executable>python</executable>
|
<executable>python</executable>
|
||||||
<arguments>
|
<arguments>
|
||||||
<argument>codegenerator.py</argument>
|
<argument>codegenerator.py</argument>
|
||||||
<argument>-s</argument>
|
<argument>-s</argument>
|
||||||
<argument>${basedir}/../apidoc/target/commands.xml</argument>
|
<argument>${basedir}/../apidoc/target/commands.xml</argument>
|
||||||
<echo>Generating ${project.artifactId} API classes}</echo>
|
<echo>Generating ${project.artifactId} API classes}</echo>
|
||||||
</arguments>
|
</arguments>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
<execution>
|
<execution>
|
||||||
<id>package</id>
|
<id>package</id>
|
||||||
<phase>package</phase>
|
<phase>package</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>exec</goal>
|
<goal>exec</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<workingDirectory>${exec.workingdir}</workingDirectory>
|
<workingDirectory>${exec.workingdir}</workingDirectory>
|
||||||
<executable>python</executable>
|
<executable>python</executable>
|
||||||
<arguments>
|
<arguments>
|
||||||
<argument>setup.py</argument>
|
<argument>setup.py</argument>
|
||||||
<argument>sdist</argument>
|
<argument>sdist</argument>
|
||||||
</arguments>
|
</arguments>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
|
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<profiles>
|
<profiles>
|
||||||
<profile>
|
<profile>
|
||||||
<id>marvin</id>
|
<id>marvin</id>
|
||||||
<activation>
|
<activation>
|
||||||
</activation>
|
</activation>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>exec-maven-plugin</artifactId>
|
<artifactId>exec-maven-plugin</artifactId>
|
||||||
<version>1.2.1</version>
|
<version>1.2.1</version>
|
||||||
<executions>
|
<configuration>
|
||||||
<execution>
|
<workingDirectory>${basedir}/marvin</workingDirectory>
|
||||||
<phase>package</phase>
|
<executable>python</executable>
|
||||||
<goals>
|
<arguments>
|
||||||
<goal>exec</goal>
|
<argument>deployAndRun.py</argument>
|
||||||
</goals>
|
<argument>-c</argument>
|
||||||
</execution>
|
<argument>${user.dir}/${marvin.config}</argument>
|
||||||
</executions>
|
<argument>-t</argument>
|
||||||
<configuration>
|
<argument>/tmp/t.log</argument>
|
||||||
<workingDirectory>${basedir}/marvin</workingDirectory>
|
<argument>-r</argument>
|
||||||
<executable>python</executable>
|
<argument>/tmp/r.log</argument>
|
||||||
<arguments>
|
<argument>-f</argument>
|
||||||
<argument>deployDataCenter.py</argument>
|
<argument>${basedir}/marvin/testSetupSuccess.py</argument>
|
||||||
<argument>-i</argument>
|
</arguments>
|
||||||
<argument>${user.dir}/${marvin.config}</argument>
|
</configuration>
|
||||||
</arguments>
|
<executions>
|
||||||
</configuration>
|
<execution>
|
||||||
</plugin>
|
<phase>test</phase>
|
||||||
</plugins>
|
<goals>
|
||||||
</build>
|
<goal>exec</goal>
|
||||||
</profile>
|
</goals>
|
||||||
</profiles>
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user