Building From Source using Maven

Preparation

Configuring the IDE

  1. Get Netbeans 8.2 and install it along with the latest updates. You could also use a newer version of Netbeans, but odds are that you find mismatches in the modules versions when compiling the client that are not worth fixing if you just want to get the code running quickly. Download the "Java EE" flavor, which already includes most of the plugins you will need, plus Glassfish Server 4.1.

    When you are prompted to select the application servers to be installed, don't forget to choose Glassfish 4.1.

  2. Install a sass compiler: sass compiler , if you are on linux "# apt-get install sass"
  3. Open Netbeans and go to Tools ⇒ HTML 5/js and search the sass compiler:
    • sass Compiler

Cleaning and Building

  1. Checkout the code from the SVN tree in separate directories:
    • Server: svn checkout https://svn.code.sf.net/p/kuwaiba/code/server/trunk
    • Client: svn checkout https://svn.code.sf.net/p/kuwaiba/code/client/trunk
    • Client: svn checkout https://svn.code.sf.net/p/kuwaiba/code/components
  2. In the component's folder Open:
    • Google Maps for Vaadin 8 project, Clean and Build it.
    • Vaadin Lienzo project, Clean and Build it.
  3. Open the client project and compile it. It should run out of the box. If you get any errors regarding dependencies and versions, make sure you have installed the latest Netbeans updates and restarted the IDE after installing them.
  4. Open the server project, resolve problems, Clean and Build it.
    • Resolve Problems 1

    • Resolve Problems 2

Executing

  1. Run client project and compile it. It should run out of the box. If you get any errors regarding dependencies and versions, make sure you have installed the latest Netbeans updates and restarted the IDE after installing them.
  2. Do not forget to create the folder structure in /data directory, the easiest way is to copy the folder "data/" from Kuwaiba's installers.
  3. Run the server project, If the database is in place, the application should be deployed and started successfully.

Additional Notes

ENTERPRISE SUPPORT