#!/bin/sh BV=2.2M1 #Birt version PK=jar #package type if [ "x" = "x$BIRT_HOME" ]; then echo "variable BIRT_HOME , containing lib/ and plugins/ must be set" exit; fi; BASEDIR=$BIRT_HOME/ReportEngine/lib BIRT_GROUP=org.eclipse.birt EMF_GROUP=org.eclipse.emf.ecore ACTUAL_DIR=`pwd` cd $BASEDIR #We Assume thar the 3 emf jars have the same version number , and take org.eclipse.emf.common for reference EMFV=`ls org.eclipse.emf.common*.jar | sed -e 's/\.jar$//' | sed -e 's/.*_//'` #BIRT APIs for i in `ls *api.jar | sed -e 's/\.jar$//'` ; do mvn install:install-file -DgroupId=$BIRT_GROUP -DartifactId=${i} -Dversion=$BV -Dpackaging=$PK -Dfile="$BASEDIR/${i}.$PK" -DgeneratePom=true ; done; #EMF ( Eclipse Modeling Framework ) . Assuming the 3 emf jars have the same version number! for i in `ls org.eclipse.emf.*.jar | sed -e 's/\.jar$//' | sed -e 's/_.*//'` ; do mvn install:install-file -DgroupId=${i} -DartifactId=${i} -Dversion=$EMFV -Dpackaging=$PK -Dfile="$BASEDIR/${i}_$EMFV.$PK" -DgeneratePom=true ; done; # Misc mvn install:install-file -DgroupId=org.w3c -DartifactId=flute -Dversion=1.3 -Dpackaging=jar -Dfile="flute.$PK" -DgeneratePom=true mvn install:install-file -DgroupId=org.w3c -DartifactId=sac -Dversion=1.3 -Dpackaging=jar -Dfile="sac.$PK" -DgeneratePom=true mvn install:install-file -DgroupId=com.ibm -DartifactId=icu -Dversion=3.4.5 -Dpackaging=jar -Dfile="com.ibm.icu_3.4.5.$PK" -DgeneratePom=true mvn install:install-file -DgroupId=com.lowagie -DartifactId=itext -Dversion=1.3 -Dpackaging=jar -Dfile="itext-1.3.$PK" -DgeneratePom=true mvn install:install-file -DgroupId=org.mozilla.rhino -DartifactId=js -Dversion=1.6R1 -Dpackaging=jar -Dfile="js.$PK" -DgeneratePom=true # cd $ACTUAL_DIR