Versions Compared

Key

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

...

Running mvn in source root will download and setup dependency jars in ~/.m2/repository.

Code Block
$ mvn

...

Some modules require dependencies that are not freely available or have an incompatible license. These dependencies you need to donwload yourself. See to following instructions to add them to your maven repository.

1. Download the following jars and put them in the deps directory:

  • cloud-iControl.jar
  • cloud-netscaler.jar
  • cloud-netscaler-sdx.jar
  • cloud-manageontap.jar
  • libvirt-0.4.8.jar
  • vmware-vim.jar
  • vmware-vim25.jar
  • vmware-apputils.jar

2. Go into the deps directory and run install-non-oss.sh

Code Block

$ cd deps
$ ./install-non-oss.sh

If you want all dependencies downloaded into the deps folder (handy for ant builds)

Code Block

$ mvm -P deps -pl deps

Building CloudStack

Running the maven command in the top directory of the CloudStack sources will compile all sources for CloudStack and run the unittests. The resulting jar files will be in the directory target in the subdirectory for a particular module. The default build will have all components that depends on non OpenSource libraries disabled. If you want to enable this, just add -D nonoss to the mvn command line.

Code Block
$ mvn -Pprofile1,profile2,profile3

...

[-D nonoss]

Development

Starting the debug server from maven

This replaces the old ant debug, but you still have to deploy the database using 'ant deploydb' for now

Code Block

$ mvn -P client -pl client jetty:run

Good Ol' Terminal

Zsh/Bash/Emacs/Vim/Grep/Sed/Awk/Javac...

...