Added by Bart van der Schans, last edited by Bart van der Schans on Aug 12, 2008  (view change)

Labels:

maven maven Delete
javadist javadist Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.

How to install the Hippo Javadist Maven plugin for creating a binary distribution with start scripts.

Hippo Javadist Maven plugin

The Javadist plugin is a Maven plugin for creating a binary distribution with start scripts. Instead of creating a single jar like the uberjar plugin, the javadist plugin creates a lib folder with all the jars and start scripts. This has the following advantages over the uberjar plugin:

  1. faster startup times
  2. easy to replace one jar
  3. no classloader issues as with the uberjar plugin

Get Maven

This plugin is designed for Maven 1.0.n, if you do not already have it, the latest version, currently 1.0.2, can be downloaded from http://maven.apache.org/maven-1.x/start/download.html. Decompress the archive to a suitable location. Add this location as MAVEN_HOME to your environment variables and for convenience, add it to the $PATH variable.

In your user directory, create a build.properties file and add the following line

maven.repo.remote=http://repository.hippocms.org/maven/,http://www.ibiblio.org/maven/

Current version: 1.01.00

Installing

To install the Hippo Management plugin:

maven -Dversion=1.01.00 -DartifactId=hippo-javadist-plugin -DgroupId=hippo-javadist-plugin plugin:download -Dmaven.repo.remote=http://repository.hippocms.org/maven

Usage

Goals are:

  • maven javadist:install : Build all and create scripts.
  • maven javadist:dist : Install and create zip and tar.gz for distribution.

build.properties

maven.main
maven.config
  • maven.main : the full name of the main class
  • maven.config : the (relative) path which contains the config files that will be copied into the distribution.

Code

The code is in the public SVN at:
http://svn.hippocms.org/repos/hippo/hippo-tools/hippo-javadist-plugin