Metadata store for DOIDB and IGSN infrastructure at and
Java AspectJ XSLT JavaScript CSS HTML
Clone or download
Pull request Compare This branch is even with GeoSamples:igsn.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This is Metadata Store (MDS) for DataCite central infrastructure. This app has UI and API for DataCite members and their datacentres. The main functionality is minting DOIs and storing metadata for the datasets.

To learn more about DataCite please visit our website

To use this software please go to

Installation (for development only)


It's assumed you have PosgreSQL 8.4 and Roo 1.1 installed. You also will need Maven 2.2.1 and JDK 6 in your system (OpenJDK from Ubuntu works fine).

You don't need Roo to run the code. Although you will most likely need it for development.

mysql setup

Create database with UTF-8 support

create database datacite character set utf8;
create database datacite_test character set utf8;

make sure transactions are supported - add in my.cnf:


Java dependencies

Most dependencies are managed by Maven public repositories. There is one jar you need to download and add to your local maven repo manually.

Handle API client

MDS uses Handle System Java API to make calls to the Handle Service. You need the Handle API client jar.

Download the Java package from

Extract files and add handle-client.jar to your local maven repo:

mvn install:install-file -Dfile=handle-client.jar \
 -Dversion=7 -Dpackaging=jar -DgeneratePom=true -DartifactId=hcj

Local SSL cert

By default MDS uses https for all URLs. In order to use SSL locally you need a SSL certificate. This certificate can be self generated - the browser will complain but all will work OK.

keytool -genkey -alias tomcat -keyalg RSA -dname "cn=localhost"

The default password is 'changeit'

Configure the source code

I assume you had created a fork from the master DataCite repository. Now you need to configure the code before compiling.

The git repository has a bunch of *.template files. You can find them with:

find . -name *.template

Those files are templates for the various configuration files which are machine specific i.e. passwords, IP addresses etc.

To customise them you need to make a copy omitting (.template from file name) e.g.:

cp src/main/resources/META-INF/persistence.xml.template \

Now in such created file you need to adjust values according to your local environment.


<property name="" value="create"/>

set the value to 'create' for the first run (DDL script will be run), for consecutive runs use 'validate'.


values put there will be used for password hashing.


your database configuration, password etc as you typed then creating the users.


your test database configuration. This database is recreated from scratch every time test run via "mvn clean test"


Handle service authentication info. If you don't know what to put here check DataCite wiki (only for members) or setup your own Handle Service.


your SMTP settings. Use your own SMPT or check DataCite wiki.


location of XSD and flag if XML should be validated.


your usual log4j stuff.

Running locally

First run

At this stage you should be able to run application.

mvn compile tomcat:run

point your browser at https://localhost:8443/mds/

it will complain about untrusted SSL certificate but you say it's OK and the main page of MDS should be presented.

Now kill tomcat and change src/main/resources/META-INF/persistence.xml

Creating user accounts

To login and create accounts for the users you need to insert admin account. Therefore run

mvn exec:java

You will be asked to specify symbol, password and e-mail for the admin account.

That's all!

You can run:

mvn compile tomcat:run 

again and create appropriate accounts and prefixes.