Maven is used for building the sources.

Insecure HTTP

Prior to Maven version 3.2.3, plug-ins and artifacts were fetched from the Maven Central Repository over insecure HTTP.

Make sure to edit your ~/.m2/settings.xml to override the URL of the Maven Central Repository. For an example, refer to doc/sample-maven-settings.xml.

Building SignServer

To build SignServer from the command line using Maven, execute:

mvn install
CODE

This will build all of the SignServer modules, putting the artifacts under ./lib and the SignServer/DeployTools module descriptors in ./mods-available.

Gathering Dependencies for later Offline Build

It's possible to let Maven gather all of the dependencies to allow performing an offline build at a later stage.

To gather all of the dependencies, execute:

mvn -Dmaven.repo.local=/tmp/signserver-repo/ dependency:go-offline install -DskipTests=true
CODE

To then perform a build completely offline, execute:

mvn -Dmaven.repo.local=/tmp/signserver-repo/ -o install
CODE