Committers Guide

This guide contains procedures to be performed by committers/maintainers of this codebase.

Build process

As described in the contributors' guide, to build the platform simply use:

mvn clean install

from the root directory.

If developing new versions of the platform, use the platformapp webapp project. This can be run from the IDE in the usual way:

platformapp run configuration

That is:

  • use org.incode.platform.appdefn.PlatformAppAppManifest

    as the app manifest implementation

  • use mvn -Denhance datanucleus:enhance in the root directory

    to enhance JDO entities prior to running the app.

Integration tests for individual modules can be run from the IDE; each modules integration tests resides in its own Maven module.

Interim Releases

As noted in the home page, interim releases of the Incode Platform source are available at

To trigger new releases, all that is required is to set up gitlab repo as an alternate remote in .git/config:

[remote "gitlab"]
    url =
    fetch = +refs/heads/*:refs/remotes/gitlab/*

Pushing to this remote will trigger a CI build that will automatically upload a new release to

Release to Maven Central

This section describes the steps to release the platform to Maven central. There are four step:

  • release the modules

  • recreate the quickstart archetype (referencing the just-released modules)

  • release the quickstart archetype

The release process uses Sonatype’s OSS support (see the "producers" user guide and associated subdocuments). Our thanks to them for providing this service.

One-off Prereqs

Apply for access to release org.incode.

  • create an account on

  • create a ticket requesting permissions to release

    Use OSSRH-28156 as a template. Also of interest might be the original requests for (OSSRH-18045 and (OSSRH=10641).

  • create a GPG key-pair and upload the public key to a public server

    Full details of how to do this can be found in Sonatype’s working-with-pgp-signatures guide.

Pre-release Prereqs

Set the following environment variables:

export INCODE_REL=1.16.3                                    # (1)
export INCODE_NEXT=1.16.4-SNAPSHOT                          # (2)
export            # (3)
export INCODE_KEYPASS="this is not really my passphrase"    # (4)

env | grep ^INCODE
1 the version to be released. Generally speaking this should correspond to the version of Apache Isis.
2 for the next development version
3 key id used when creating the GPG key pair
4 corresponding pass phrase

Release Modules

Switch to the modules directory:

pushd modules

If necessary, update the incode-parent module (in modules/pom.xml), so that it references the correct version of Apache Isis.


Commit these changes.

Then, release and tag using:

mvn clean deploy               \
    -Ddeploy                   \
    -Ddeploy-modules           \
    -Dskip.default-modules     \
    -Drevision=$INCODE_REL      \
    -Dskip.isis-swagger        \
    -Dskip.isis-validate       \
    -Dpgp.secretkey=keyring:id=$INCODE_KEYID \

git tag $INCODE_REL

If the script completes successfully, then push changes and the tag:

git push origin master && git push origin $INCODE_REL

Recreating the archetype

The quickstart archetype is re-created for each release from the current quickstart application. The generated archetype is then released by deploying up to Maven Central.

If necessary, setup environment variables:

export INCODE_REL=1.16.3

env | grep ^INCODE

Then, switch to the quickstart application:

pushd archetype/app/quickstart

Now check the application source code:

  • Confirm that the parent pom.xml of the quickstart application inherits from the release version of org.incode:incode-parent.

    For example:

  • Also check that the parent pom.xml references the release (non-SNAPSHOT) versions of isis.version:


Staying in the same directory, recreate using:

sh ../../arch/ $INCODE_REL

Finally, commit any changes:

git commit -am "recreates archetype for $INCODE_REL"

Releasing the archetype

We release in three steps:

  • build the archetype locally (analogous to mvn release:prepare)

  • check that an application can be built from the archetype

  • deploy the archetype (using mvn deploy).

Prepare the archetype

The archetype is prepared using:

pushd ex/arch/quickstart
sh ../ $INCODE_REL

Testing the archetype

In a different session:

First, setup environment variables:

export INCODE_REL=1.16.3
export INCODE_TMP=/c/tmp    # or as required
export INCODE_ART=quickstart
env | grep INCODE | sort




also, delete any test artifacts that might be in local cache:

rm -rf ~/.m2/repository/com/mycompany

Then, generate the app:

mvn archetype:generate  \
    -D archetypeGroupId=org.incode.platform.archetype \
    -D archetypeArtifactId=quickstart-archetype \
    -D archetypeVersion=$INCODE_REL \
    -D groupId=com.mycompany \
    -D artifactId=myapp \
    -D version=1.0-SNAPSHOT \
    -D archetypeCatalog=local \

and build and run using:

cd myapp
mvn clean install

mvn -pl webapp jetty:run \

Login using sven/pass. The application generated should be the Quickstart app.

Deploying the archetype

Back in the original session (in the archetype/arch/quickstart directory), the archetype is released (deployed to Maven Central) using:

pushd ex/arch/quickstart
sh ../    \
              $INCODE_NEXT \
              $INCODE_KEYID \

This script should automatically commit changes. To finish up, just push:

git push

Update the website

Update the website where required. In particular, update:

  • running the archetype

    • home page

    • quickstart page

  • change log

and republish (as described below).

Docs & website

The website resides in the adocs directory:

  • documentation/ is the source for website itself (Asciidoctor)

  • template/ is the HTML template

  • search/ holds node.js Javascript files to index the built site so that it is searchable

The website is published to the incodehq/ github repository; a CNAME file (in the root directory) maps this to

To publish, this repository must also be cloned to your local computer. The scripts assume that the incode-platform repository (ie this repo) and the repository cloned at the same level, eg:

└── incodehq
    ├── incode-platform


Make sure that you’ve checked out the incodehq/ repository alongside this one (see discussion above).

You’ll also need to install:

  • node (v7.10.0 or later) …​ used to build the search index

  • python 3 …​ used to preview

The actual website generation uses AsciidoctorJ, which is called by Maven plugin. There are no other software prereqs.

Normally you’ll want to work in the adocs/documentation directory:

pushd adocs/documentation

Previewing the website

To do a quick build the website and preview locally, use:


This builds the HTML and the search index, but omits building the PDFs. To enable you to preview the generated site, it starts a (python) webserver to browse.

To also build the PDFs, use:


Publishing the website

When you are ready to publish the website, use:


This will remove all files in the directory and replace with the latest build.

To check everything is ok:

pushd ../../../

(or use to also generate the PDFs).

If all looks ok, then just push the changes:

git push