Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added information about maven III. Info | Building qcadoo on non-Unix

Table of Contents

This guide is designed for bash.

I. Clone repository

This step is optional if you already have a copy of the repository.

...

  1. Build framework and plugins
    Projects must be built in specific order:
    1. qcadoo-super-pom-open
    2. qcadoo-maven-plugin
    3. qcadoo
    4. mes

    Build each project with command:

    Code Block
    languagebash
    mvn clean install [-o]

    Use flag -o if you want to use locally built binaries.

    Info
    titleRebuilding

    If you rebuild MES on the same computer and no changes have been done in step II. in given project, you can skip it in build order. If however some changes appear in qcadoo for example, you must rebuild projects b, c, d.

    Build order is important!


    Info
    titleBuilding qcadoo on non-Unix

    If you have got some problems when building qcadoo project on non-Unix based computer please add -DskipTests=true, to build command.

    If you have got some problems when building mes-commercial project on non-Unix computer please check your maven version. If you have version 3.9.x then change it to 3.8.x and remember about changing PATH for maven in environment variables.


  2. Prepare configuration for MES application

    Before you can start application, you have to create database.

    Info
    titlePostgres installation

    Currently we're working on Postgres 9.5.4. For installation manual depending on your platform follow: https://www.postgresql.org/download/.

    By default mes will try to connect to database as user: postgres, using password: postgres123 and connecting to database mes. You can change this settings in file mes/mes-application/target/tomcat-archiver/mes-application/qcadoo/db.properties

    Info
    titleConfiguration preserving

    If you want to make configuration and preserve it between mes-application builds, change file mes/mes-application/conf/tomcat/db.properties


    If you want to make temporary configuration for current build only, change file mes/mes-application/target/tomcat-archiver/mes-application/qcadoo/db.properties (after first build!) .

    We no longer provide possibility to create clean database when starting qcadoo MES. 
    Instead, we attach schema dump, which You can find in the following path: 

    /mes/mes-application/src/main/resources/schema/demo_db_en.sql

    Before You can run qcadoo MES, all You have to do is to restore this dump using the following command (assuming, You have installed postgreSQL as the user postgres, and created database mes with password postgres123 and appropriate locale):

    psql -U postgres mes < path/to/schema/demo_db_en.sql


    Info
    titleSchema version

    Schema is valid for current master branch. If You decide to build qcadoo MES from branch different than current branch (e.g. dev, feature/xyz), You will fail to launch the application. In order to start qcadoo MES built from branch other than current master, change "hibernateHbm2ddlAuto=validate" to "hibernateHbm2ddlAuto=update" in file:

    mes/mes-application/target/tomcat-archiver/mes-application/qcadoo/db.properties (created after command below is being executed)


    Be aware - You may be missing some views, menu position etc., but You will be able to run qcadoo MES!


  3. Building MES application

    Navigate to mes/mes-application and use:

    Code Block
    languagebash
    mvn clean install -o -Ptomcat -Dprofile=package


...