Versions Compared

Key

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

...

By default we just build a WAR package in qcadoo-src/mes/mes-application/target which you can configure to run on a servlet container of your choice. This does not include the mesqcadoo-tomcat module (it is not build nor tested).  If we want to build a package that runs on an enabled Tomcat you have to add the -Ppackage arguments Ptomcat argument to the maven command.

You can also find some additional deployment profiles that use specific configuration files in the directory qcadoo-src/mes/mes-application/conf. To use a profile add the following argument when executing maven: -Dprofile=profile_name.

For example the binary release of Qcadoo is build using both the package option and the release as the profile and an additional packaging option -Ptomcat argument. This is done using the below command in the directory qcadoo-src/mes:

mvn clean install -Prelease,package,compressResources -Dprofile=releasePtomcat

the above will build the binary distribution to the qcadoo-src/mes/mes-application/tomcat/target/qcadoo/qcadoo-archiver/mes-application directory.

For developer testing you might want to also just run the build on jetty. To do this just use the following command:

mvn jetty:run -Dprofile=profile_name

We also use configuration and build profiles to do specific deployments on servers. For example to deploy a demo Qcadoo MES instance on our internal test server in Qcadoo Limited called emhyr we use the following command:

mvn clean deploy -Pemhyr,tomcat,compressResources -Dprofile=emhyr-demo