#!/bin/bash
# 
# WARNING: DO NOT RUN THIS FILE BLINDLY or you could pollute your local Maven2 repo.
# 	Take care to update versions and paths of all third party libraries before
#	running this script.  Or if you are really paranoid, don't run this script,
#	just run each "install:install" block individually.
#
# INFO: Generally this file has documented all of the required third party libraries
#	that JSPWiki 2.5.22 uses, that are not found on ibiblio.  It provides a
#	starting point for installing these libraries into a local Maven2 repository
#	for customized builds of JSPWiki using Maven and Ant.
#
# TODO: To use this, you'll need to customize the location of each third party
#	library that you download and unpack on your development system.
#

export DEV_BASE=d:/dev/

# install a copy of JSPWiki's JAR for use by other Maven-based projects.
mvn install:install-file \
                "-Dfile=$DEV_BASE/JSPWiki/build/JSPWiki.jar" \
                -DgroupId=jspwiki \
                -DartifactId=jspwiki \
                -Dversion=2.4.92 \
                -Dpackaging=jar
		
# Third party maven2 additions follow (this list may not be complete):

mvn install:install-file \
                "-Dfile=$DEV_BASE/oscache/lib/oscache-2.3.1.jar" \
                -DgroupId=opensymphony \
                -DartifactId=oscache \
                -Dversion=2.3.1	 \
                -Dpackaging=jar
mvn install:install-file \
                "-Dfile=$DEV_BASE/jakarta-oro-2.0.8.jar" \
                -DgroupId=jakarta-oro \
                -DartifactId=jakarta-oro \
                -Dversion=2.0.8 \
                -Dpackaging=jar

# the following JARS are installed directly out of the JSPWiki CVS module

mvn install:install-file \
                "-Dfile=$DEV_BASE/JSPWiki/lib/sandler.jar" \
                -DgroupId=org.intabulas \
                -DartifactId=sandler \
                -Dversion=1.0	 \
                -Dpackaging=jar
mvn install:install-file \
                "-Dfile=$DEV_BASE/JSPWiki/lib/lucene-highlighter.jar" \
                -DgroupId=org.apache.lucene \
                -DartifactId=lucene-highlighter \
                -Dversion=2.0.0	 \
                -Dpackaging=jar
mvn install:install-file \
                "-Dfile=$DEV_BASE/JSPWiki/lib/akismet-java-1.02.jar" \
                -DgroupId=net.sf.akismet \
                -DartifactId=akismet \
                -Dversion=1.02	 \
                -Dpackaging=jar
mvn install:install-file \
                "-Dfile=$DEV_BASE/JSPWiki/lib/jrcs-diff.jar" \
                -DgroupId=org.apache.jrcs \
                -DartifactId=jrcs-diff \
                -Dversion=apache \
                -Dpackaging=jar
mvn install:install-file \
                "-Dfile=$DEV_BASE/JSPWiki/lib/freshcookies-security-0.31.jar" \
                -DgroupId=org.freshcookies \
                -DartifactId=security \
                -Dversion=0.31 \
                -Dpackaging=jar
mvn install:install-file \
                "-Dfile=$DEV_BASE/JSPWiki/lib/multipartrequest.jar" \
                -DgroupId=net.sf.multipartrequest \
                -DartifactId=multipartrequest \
                -Dversion=1.30rc1 \
                -Dpackaging=jar


