Posts

Deploying the portal web application

For building the web application The steps for building and deploying the portal web application are as follows: 1) Download the source code at: http://code.google.com/p/gbif-dataportal/source/checkout The modules needed are: portal-core portal-index portal-service portal-web For instructions on how to checkout this modules from the SVN to your machine, please see http://code.google.com/p/gbif-dataportal/source/checkout . 2) Once that the modules have been saved to your machine, you need to build them. There is a script on the portal-web module for automatically building all the project and downloading all the dependencies (libraries) from the repositories Script location: portal-web/first-build-all.sh For building the database 1) On the portal-core project, there is a file at db/portal.ddl that builds the initial structure for the index DB for the portal. mysql> create database portal; mysql -u [username] -p [database] 2) For populating the database with the minimum data required,...

GBIF Maven Repository

GBIF uses Maven to build projects, manage the dependencies and also to generate online java docs as part of a maven site. I would like to take the chance and introduce some basic maven features that we use at GBIF. Repository & Sites We host a maven repository that we use for keeping external not yet mavenized libraries and to deploy our own developments. All projects can deploy a maven site with java docs, test coverage, dependencies and the regular maven things. The subfolder will be named after the artifactId of the project, so make sure its unique within GBIF! Apache has more information on customizing a maven site per project. GBIF Parent POM All GBIF maven projects should make use of our shared parent POM that defines the repository and site URLs, the apache 2 licensing, other popular maven repositories and basic build rules. One of the most important settings in this mother pom is the groupId=org.gbif. We would like all GBIF projects to share the same groupId, which mea...