loading table of contents...

9.5. Maven Profile Reference

There are some profiles predefined in the workspace. Some are relevant for building and some are relevant for starting components. To activate them simply add them to your profiles list, such as mvn clean install -Pvagrant.

Profile name Description
integration-test

This profile activates integration tests. If activated, tests will run that require a running system.

internal-licenses

This profile is used to package license files together with the server web applications. It defines a dependency to a war artifact, which should contain a WEB-INF/properties/corem/license.zip. For more information see the section called “Configuring the licenses”

performance

This profile is located in the modules/cae/cae-performance-test module and activates JMeter performance tests, if configured.

postconfigure

This profile is the counterpart of the preconfigure Profile, it tells Maven to insert tokens into the configuration files of the packages for post-configuration on the target machine at installation time, see Section 4.3.9, “Configure Filtering in the Workspace” for a detailed description of this process.

preconfigure

This profile tells Maven to load the packages/src/main/filters/preconfigure.properties, to preconfigure the RPM or Zip files for deployment. Artifacts build this way can only be deployed on the system the preconfigure.properties defines for.

vagrant

To develop against the databases and servers installed on the virtualized environment provided with Chef and Vagrant activate this profile. It overrides the default values for the host properties.

s3-upload

Creates ZIP archives for the RPM repository and the content and uploads them to Amazon S3. This profile is only relevant for the boxes module and only if you want to deploy a test system to the cloud.

repository-upload

Collects and uploads the RPMs to a Maven repository. Use this profile together with a Maven repository server that is capable of serving Yum repositories. This profile is only relevant for the boxes module and can be activated during the perform phase of the Maven release process.

Table 9.5. Maven profiles