Only the first time#

Clone the Mercurial repo from SourceForge:

hg clone portofino

or, alternatively, its mirror on GitHub:

git clone portofino

Every time#

Build it:

cd portofino
mvn install

The result of the build is:

  • All Portofino modules in their own directories
  • The Maven archetype to create new projects
  • The demo-tt war


If you want to recreate the one-click package (Tomcat + empty Portofino webapp) - the one you can download from SourceForge - there is a Python script (Unix only) to do so in the "oneclick" directory.

Prerequisite: create a file in this format:

#! /usr/bin/env python

portofino_version = "4.1.2"
tomcat_dir = "apache-tomcat-7.0.57"
portofino_path = "~/projects/portofino4"
tomcat_url = ""
drivers = [["org/postgresql/postgresql/9.2-1003-jdbc4/", "postgresql-9.2-1003-jdbc4.jar"],
           ["mysql/mysql-connector-java/5.1.25/", "mysql-connector-java-5.1.25.jar"],
           ["net/sourceforge/jtds/jtds/1.2.8/", "jtds-1.2.8.jar"]]

It should be self-explanatory. Portofino is built in portofino_path, a new project is created from the archetype, Tomcat is downloaded from tomcat_url and expanded in tomcat_dir, and the specified JDBC drivers are downloaded from Maven Central and bundled in Tomcat's libs. contains a commented out example for the above where you can copy versions and URLs from (Tomcat URLs tend to become invalid when newer versions are released, so we cannot hardcode them).

When you have a properly configured, you can just launch


If everything goes well, you'll find the result in build/portofino-$

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-3) was last changed on 11-Aug-2016 17:26 by