Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents

TODOs

  1.  Deploydb:
    - fix root/cloud permission issue
    - create cloud user is it does not exist
    - remove developer/pom.xml to a profile in root pom.xml
    - create schema/tables for cloud_usage and cloudbridge databases
    - see if we can use http://code.google.com/p/flyway/ etc. for database upgrading/migration during development (suggested by John Burwell <jburwell@basho.com>)
  2. Compile:
    - use jetty to run and debug webapp
    - fix tomcat webapp compilation issue
    - fix compilation of some projects still under WIP
  3. Unittests:
    - fix unittests so they are more useful during compilation
  4. Deploy and Debug:
    - deploy and debug with jetty
    - configure tomcat plugin to do tomcat:deploy and tomcat:run, debug
  5. Artifacts
    - Client-ui.war (done, requires testing)
    - awsapi.war (done, requires testing)
    - usage.jar (wip)
    - systemvm.iso (done, requires testing)
    - agent.zip (not started yet)
  6. External Packaging:
    - deb packaging
    - rpm packaging
  7. Site/doc generation with maven

...

Available profiles

Enabled by property

Requires profiles

Description

deps

 

 

Enables a convenience download for all dependencies into the deps directory, usage mvn -P deps -pl deps install

developer

 

 

Enables a convenience pom with developer functions

vmware

nonoss

 

Enables the build of vmware-base and the vmware plugin, requires vmware SDK to be present.

netapp

nonoss

 

Enables the build of the netapp plugin, requires NetApp manageontap sdk.

f5

nonoss

 

Enables the build of the f5 plugin, requires f5 iControl library

netscaler

nonoss

 

Enables the build of the netscaler plugin, requires additional libraries.

srx

nonoss

 

Enables the build of the juniper srx plugin, requires additional libraries.

Available properties

 

Required profile

Description

deploydb

 

developer

Clears and creates the cloud database in the mysql server configured utils/conf/db.properties

nonoss

 

 

Enables all modules that are not part of the standard ASF build

systemvm

 

 

Enabled the build of the systemvm.iso, requires mkisofs to be available on the commandline

For nonoss, just do a mvn -Dnonoss <goal>.

Example, if you want to build CloudStack with all ASF components and the vmware plugin, use the following command

...

Running a server for test/debug purposes.

On can use maven to deploy and debug the management server. First export the MAVEN_OPTS variable to open a transport socket on port 8787 (same as before).

Code Block

$ export MAVEN_OPTS="-Xmx1024m -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y"

If you don't export using above configuration, the management server will run with no debugger attached.

This will run a jetty server on localhost port 8080 with the management server.

Code Block
$ mvn  -pl :cloud-client-ui jetty:run

...