webapps=../../

rm `echo $webapps`LibreECM* -r
cp mapping.xml LibreECMDDBB/src/main/resources/mapping.xml -u
cp mapping.xml LibreECM/src/main/resources/mapping.xml -u
cp mapping.xml LibreECMInput/src/main/resources/mapping.xml -u
cp mapping.xml LibreECMOpenCMIS/src/main/resources/mapping.xml -u

cd LibreECMCommonAPI 
mvn clean package
cd ..
mvn install:install-file -Dfile=LibreECMCommonAPI/LibreECMCommonAPI-0.1.0.war -DgroupId=org.LibreECM -DartifactId=LibreECMCommonAPI -Dversion=0.1.0 -Dpackaging=war

cd LibreECMDDBB
mvn clean package
cd ..
cp LibreECMDDBB/target/LibreECMDDBB-0.1.0.war `echo $webapps`

cd LibreECMOpenCMIS
mvn clean package
cd ..
cp LibreECMOpenCMIS/target/LibreECMOpenCMIS-0.1.0.war `echo $webapps`

cd LibreECMInput
mvn clean package
cd ..
cp LibreECMInput/target/LibreECMInput-0.1.0.war `echo $webapps`

cd LibreECM
mvn clean package
cd ..
cp LibreECM/target/LibreECMMain-0.1.0.war `echo $webapps`

