Creating a new project


  • JDK 1.8
  • Maven 3.3.x
  • Python 2.7 installed (Needed to build the admin GUI)
  • Linux or Windows


You can run ηCMS on Windows, but the ηCMS 1.0 test cases are designed to run only on Linux platforms. We highly recommend to run ηCMS 1.0 on Linux in production.

Using Maven Archetype

The best way to create a new ηCMS project is to create it from the maven archetype.

mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -U \
    -DarchetypeGroupId=softmotions \
    -DarchetypeArtifactId=ncms-site-archetype \
    -DarchetypeVersion=1.2-SNAPSHOT \

Alternatively you can run:

mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate \

Let’s consider the creation and development of the ηCMS project using the website about parrots as an example. The Java code of this project resides in package org.myparrots.

$:   mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -U \
>         -DarchetypeGroupId=softmotions \
>         -DarchetypeArtifactId=ncms-site-archetype \
>         -DarchetypeVersion=1.2-SNAPSHOT \
>         -DarchetypeRepository=
[INFO] Scanning for projects...


Define value for property 'groupId':  org.example: : org.myparrots
Define value for property 'artifactId':  ncmsapp: : ncmsapp
Define value for property 'version':  1.0-SNAPSHOT: :
Define value for property 'package':  org.example: : org.myparrots
Define value for property 'projectName':  My ηCMS Project: : All about my parrots
Define value for property 'serverPort':  8080: : 9292
Confirm properties configuration:
groupId: org.myparrots
artifactId: ncmsapp
version: 1.0-SNAPSHOT
package: org.myparrots
projectName: All about my parrots
serverPort: 9292

Project structure

As a result of mvn archetype:generate we got the following structure:

├── qx/
│   ├── src/
│   └── pom.xml
├── tomcat/
│   ├── context.xml
│   └── server.xml
├── web/
│   ├── src/
│   └── pom.xml
├── pom.xml


  • qx - The source code of the administrative GUI interface, is based on javascript library qooxdoo
  • web - The server side web resources and project’s Java code
  • tomcat - Apache Tomcat configuration files start the server in the development mode using maven cargo plugin

Configuring the database connection

Before running the application we have to setup configuration of the database connection.

ηCMS 1.0 version supports the following database systems:

All application configuration parameters as well as database connection parameters are located in the configuration files. In our project it will be: conf/ncmsapp-dev-configuration.xml.

    <!-- DB2 -->
    <!-- Postgresql -->

Database connection parameters are defined in the {home}/.ncmsapp.ds file , where {home} is a home directory of users who run the ηCMS server. You must create the file and specify the parameters within it:

cat ~/.ncmsapp.ds

For DB2:


For PostgreSQL:


Building and running the project

mvn clean verify && mvn

The admin zone will be available at: http://localhost:<port>/adm/ Username: admin and password is stored in conf/ncmapp-users.xml: