Versions Compared

Key

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

...

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

noredist 


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

netapp

noredist 


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

f5

noredist 


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

netscaler

noredist 


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

srx

noredist 


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

marvin

marvin.config

developer

Allows you to configure cloudstack using a marvin json configuration

Available properties 


Required profile

Description

deploydb 


developer

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

noredist

 

 



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

systemvm 


systemvm

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

awsapi 


awsapi

Enables building of awsapi module along with rest of the CloudStack

simulator 


developer

Enables the simulator spring context for running the integration test

...

Code Block
$ export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=500m -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"

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

On some (macosx) systems you might want to add "-Djava.net.preferIPv4Stack=true". Escpecially when using mixed wired and wireless networks.

For most versions of java on most version of macosx you need to add '-Djava.net.preferIPv4Stack=true' to that so to be on the save side; on macosx


Code Block
languagebash
themeMidnight
titleon macosx
$ export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=500m -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n -Djava.net.preferIPv4Stack=true"


code-Djava.net.preferIPv4Stack=truecode

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

On some (macosx) systems you might want to add "-Djava.net.preferIPv4Stack=true". Escpecially when using mixed wired and wireless networks.

This will run a jetty server This will run a jetty server on localhost port 8080 with the management server. Make sure that no other processes are using the port 8080. The default port for tomcat is 8080. You can either shut down tomcat service or switch to another port.

...

The output file is in ${project.build.directory}/rat.txt, by default in target/rat.txt

...

Code Coverage and Quality checks

Code Block
$ mvn site
-P developer,systemvm,quality -Dsimulator -Dnoredist clean install clover:aggregate clover:clover

The output coverage website is generated at target/site/clover/index.html

Site Generation and Reporting

Code Block
$ mvn site

Versioning / Releases

Update the version number of the project

...

Code Block
# mkdir -p /etc/cloudstack/management/
# cp ./client/target/cloud-client-ui-4.3.0-SNAPSHOT/WEB-INF/classes/db.properties /etc/cloudstack/management/
# ./client/target/generated-webapp/WEB-INF/classes/scripts/storage/secondary/cloud-install-sys-tmplt -m /mnt/secondary -u http://jenkins.buildacloud.org/view/masterAll/job/build-systemvmsystemvm64-master/lastSuccessfulBuild/artifact/tools/appliance/dist/systemvmtemplatesystemvm64template-2013-11-14-mastermaster-4.6.0-xen.vhd.bz2 -h xenserver -F

Remote debugging

To enable remote debugging on a system go to the cloudstack-management file (for centOS 7 this file can be found under the following path: /etc/default/cloudstack-management).|

Before CS 4.11 (tomcat7)

Add 

-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5000

 To the JAVA_OPTS:
JAVA_OPTS="-Djava.awt.
headless=true -Dcom.sun.management.jmxremote=false -Xmx2g -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/cloudstack/management/ -XX:PermSize=512M -XX:MaxPermSize=800m -Djavax.net.ssl.trustStore=/etc/cloudstack/management/cloud.jks -Djavax.net.ssl.trustStorePassword=vmops.com -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5000 "

Restart your management server (systemctl restart cloudstack-management).
You can now connect your java debugger on port 5000.

From CS 4.11 onwards (jetty):

Add 

JAVA_TOOL_OPTIONS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5000"

as a new line.
Restart your management server (systemctl restart cloudstack-management).
You can now connect your java debugger on port 5000.