EEA & Eionet documentation hub

Browse documentation for IT-systems used by the European Environment Agency and the Eionet network.

Transfer website


This application makes it possible to create a safe transfer of a file to another user.

The application uses Liquibase to create and upgrade the database, and Thymeleaf as the templating engine. You can find the layout template at src/main/webapp/WEB-INF/thymeleaf/layout.html. The database is in-memory for the production and file-based for test. You can therefore just drop the WAR file into Tomcat, and it will create tables, load initial data and launch.


  • Tomcat 7
  • Java 1.7
  • Spring 4
  • Thymeleaf 2.1.4
  • H2 Database Engine

Automated tests

There are test examples of both controllers and data access objects using the Spring test package.

How to build

You need Git to check the code out from the repository and to build you need Java and Maven. All other dependencies will automatically be downloaded by Maven.

To build you do:

git clone
cd eionet.transfer
mvn clean install
cp target/transfer.war /var/lib/tomcat/webapps/ROOT.war

This will create a target subdirectory, build the code, run the tests and put a WAR file in target. You then deploy this file to Tomcat. It contains an embedded database.

Building a Docker image

It is possible to build, test and push a Docker image of Eionet transfer to EEA’s Docker registry. The image includes Jolokia for integration into the monitoring system. To do so you activate the docker profile. The install goal will do a test start up of the container. The docker:push will push the Docker image to

mvn -Pdocker install docker:push

To use docker:push you must have an account and add these lines to your ~/.m2/settings.xml:


Deployment of WAR file

The default configuration is to allow you to deploy to your own workstation directly. You install the target/transfer.war to Tomcat’s webapps directory as ROOT.war. You can make it create an initial user with administrator rights by setting system properties to configure the application.

On a CentOS system you can start Tomcat with the environment variable JAVA_OPTS set to some value or add lines to /etc/sysconfig/tomcat that looks like this:

JAVA_OPTS="-Dcas.service= -Dinitial.username=myname"
JAVA_OPTS="$JAVA_OPTS -Ddb.url=jdbc:h2:tcp://localhost:8043//work/transferdb -Dstorage.dir=/work -Dupload.dir=/work"

These are the properties you can set:

initial.username # Not needed when integrated with CAS.

The default values are in src/main/resources/ and src/main/resources/

Edit this page