|
504 | 504 | </profile> |
505 | 505 | <profile> |
506 | 506 | <id>developer</id> |
| 507 | + <properties> |
| 508 | + <marvin.config>tools/devcloud/devcloud.cfg</marvin.config> |
| 509 | + </properties> |
507 | 510 | <modules> |
508 | 511 | <module>developer</module> |
509 | | - <module>tools/apidoc</module> |
510 | | - <module>tools/devcloud</module> |
511 | | - <module>tools/devcloud-kvm</module> |
512 | | - <module>tools/marvin</module> |
513 | | - <module>tools/cli</module> |
| 512 | + <module>tools</module> |
514 | 513 | </modules> |
515 | 514 | </profile> |
516 | 515 | <profile> |
|
524 | 523 | <module>vmware-base</module> |
525 | 524 | </modules> |
526 | 525 | </profile> |
| 526 | + <profile> |
| 527 | + <id>simulator</id> |
| 528 | + <activation> |
| 529 | + <property> |
| 530 | + <name>deploydb-simulator</name> |
| 531 | + </property> |
| 532 | + </activation> |
| 533 | + <build> |
| 534 | + <plugins> |
| 535 | + <plugin> |
| 536 | + <groupId>org.codehaus.mojo</groupId> |
| 537 | + <artifactId>properties-maven-plugin</artifactId> |
| 538 | + <version>1.0-alpha-2</version> |
| 539 | + <executions> |
| 540 | + <execution> |
| 541 | + <phase>initialize</phase> |
| 542 | + <goals> |
| 543 | + <goal>read-project-properties</goal> |
| 544 | + </goals> |
| 545 | + <configuration> |
| 546 | + <files> |
| 547 | + <file>${project.basedir}/utils/conf/db.properties</file> |
| 548 | + <file>${project.basedir}/utils/conf/db.properties.override</file> |
| 549 | + </files> |
| 550 | + <quiet>true</quiet> |
| 551 | + </configuration> |
| 552 | + </execution> |
| 553 | + </executions> |
| 554 | + </plugin> |
| 555 | + <!-- DatabaseCreator driver here --> |
| 556 | + <plugin> |
| 557 | + <groupId>org.codehaus.mojo</groupId> |
| 558 | + <artifactId>exec-maven-plugin</artifactId> |
| 559 | + <version>1.2.1</version> |
| 560 | + <dependencies> |
| 561 | + <!-- specify the dependent jdbc driver here --> |
| 562 | + <dependency> |
| 563 | + <groupId>mysql</groupId> |
| 564 | + <artifactId>mysql-connector-java</artifactId> |
| 565 | + <version>${cs.mysql.version}</version> |
| 566 | + </dependency> |
| 567 | + <dependency> |
| 568 | + <groupId>commons-dbcp</groupId> |
| 569 | + <artifactId>commons-dbcp</artifactId> |
| 570 | + <version>${cs.dbcp.version}</version> |
| 571 | + </dependency> |
| 572 | + <dependency> |
| 573 | + <groupId>commons-pool</groupId> |
| 574 | + <artifactId>commons-pool</artifactId> |
| 575 | + <version>${cs.pool.version}</version> |
| 576 | + </dependency> |
| 577 | + <dependency> |
| 578 | + <groupId>org.jasypt</groupId> |
| 579 | + <artifactId>jasypt</artifactId> |
| 580 | + <version>${cs.jasypt.version}</version> |
| 581 | + </dependency> |
| 582 | + <dependency> |
| 583 | + <groupId>org.apache.cloudstack</groupId> |
| 584 | + <artifactId>cloud-utils</artifactId> |
| 585 | + <version>${project.version}</version> |
| 586 | + </dependency> |
| 587 | + <dependency> |
| 588 | + <groupId>org.apache.cloudstack</groupId> |
| 589 | + <artifactId>cloud-server</artifactId> |
| 590 | + <version>${project.version}</version> |
| 591 | + </dependency> |
| 592 | + </dependencies> |
| 593 | + <executions> |
| 594 | + <execution> |
| 595 | + <phase>process-resources</phase> |
| 596 | + <id>create-schema</id> |
| 597 | + <goals> |
| 598 | + <goal>java</goal> |
| 599 | + </goals> |
| 600 | + </execution> |
| 601 | + </executions> |
| 602 | + <configuration> |
| 603 | + <includeProjectDependencies>false</includeProjectDependencies> |
| 604 | + <includePluginDependencies>true</includePluginDependencies> |
| 605 | + <executableDependency> |
| 606 | + <groupId>org.apache.cloudstack</groupId> |
| 607 | + <artifactId>cloud-server</artifactId> |
| 608 | + </executableDependency> |
| 609 | + <mainClass>com.cloud.upgrade.DatabaseCreator</mainClass> |
| 610 | + <arguments> |
| 611 | + <!-- db properties file --> |
| 612 | + <argument>${project.basedir}/utils/conf/db.properties</argument> |
| 613 | + <argument>${project.basedir}/utils/conf/db.properties.override</argument> |
| 614 | + <!-- simulator sql files --> |
| 615 | + <argument>${basedir}/target/db/create-schema-simulator.sql</argument> |
| 616 | + <argument>${basedir}/target/db/templates.simulator.sql</argument> |
| 617 | + <!-- database upgrade--> |
| 618 | + <argument>com.cloud.upgrade.DatabaseUpgradeChecker</argument> |
| 619 | + <argument>--database=simulator</argument> |
| 620 | + <argument>--rootpassword=${db.root.password}</argument> |
| 621 | + <!-- enable verbosity by -v or dash-dash-verbose --> |
| 622 | + </arguments> |
| 623 | + <systemProperties> |
| 624 | + <systemProperty> |
| 625 | + <key>catalina.home</key> |
| 626 | + <value>${project.basedir}/utils</value> |
| 627 | + </systemProperty> |
| 628 | + </systemProperties> |
| 629 | + </configuration> |
| 630 | + </plugin> |
| 631 | + </plugins> |
| 632 | + </build> |
| 633 | + </profile> |
527 | 634 | </profiles> |
528 | 635 | </project> |
0 commit comments