jan-h
10/16/2015 - 7:02 AM

install non-public dependencies for DD4T 2.0

install non-public dependencies for DD4T 2.0

@echo off
rem see DD4T dependency naming on https://github.com/dd4t/dd4t-2-java/blob/develop/README.md
rem TODO remove dependencies not ued by DD4T 2.0
rem DD4T README has different easylicense artifactId then dd4t-sample site https://github.com/dd4t/dd4t-2-java

rem this scrip is based on https://github.com/sdl/dxa-web-application-java/blob/develop/tridion-libs/7.1.0/mvn-install.bat

rem Install Tridion Content Delivery libraries and necessary third-party libraries in the local Maven repository

echo Installing Tridion Content Delivery libraries into the local Maven repository...
call mvn -q install:install-file -DgroupId=com.tridion.contentdelivery -DartifactId=cd_ambient         -Dversion=7.1.0 -Dpackaging=jar -Dfile=cd_ambient-7.1.0.jar
call mvn -q install:install-file -DgroupId=com.tridion.contentdelivery -DartifactId=cd_broker          -Dversion=7.1.0 -Dpackaging=jar -Dfile=cd_broker-7.1.0.jar
call mvn -q install:install-file -DgroupId=com.tridion.contentdelivery -DartifactId=cd_cache           -Dversion=7.1.0 -Dpackaging=jar -Dfile=cd_cache-7.1.0.jar
call mvn -q install:install-file -DgroupId=com.tridion.contentdelivery -DartifactId=cd_core            -Dversion=7.1.0 -Dpackaging=jar -Dfile=cd_core-7.1.0.jar
call mvn -q install:install-file -DgroupId=com.tridion.contentdelivery -DartifactId=cd_datalayer       -Dversion=7.1.0 -Dpackaging=jar -Dfile=cd_datalayer-7.1.0.jar
call mvn -q install:install-file -DgroupId=com.tridion.contentdelivery -DartifactId=cd_dynamic         -Dversion=7.1.0 -Dpackaging=jar -Dfile=cd_dynamic-7.1.0.jar
call mvn -q install:install-file -DgroupId=com.tridion.contentdelivery -DartifactId=cd_linking         -Dversion=7.1.0 -Dpackaging=jar -Dfile=cd_linking-7.1.0.jar
call mvn -q install:install-file -DgroupId=com.tridion.contentdelivery -DartifactId=cd_model           -Dversion=7.1.0 -Dpackaging=jar -Dfile=cd_model-7.1.0.jar
call mvn -q install:install-file -DgroupId=com.tridion.contentdelivery -DartifactId=cd_session         -Dversion=7.1.0 -Dpackaging=jar -Dfile=cd_session-7.1.0.jar
call mvn -q install:install-file -DgroupId=com.tridion.contentdelivery -DartifactId=cd_wrapper         -Dversion=7.1.0 -Dpackaging=jar -Dfile=cd_wrapper-7.1.0.jar

REM Optional runtime Tridion Content Delivery JARs (for OData/Preview/HTTP Deploy)
call mvn -q install:install-file -DgroupId=com.tridion.contentdelivery -DartifactId=cd_deployer            -Dversion=7.1.0 -Dpackaging=jar -Dfile=cd_deployer-7.1.0.jar
call mvn -q install:install-file -DgroupId=com.tridion.contentdelivery -DartifactId=cd_upload              -Dversion=7.1.0 -Dpackaging=jar -Dfile=cd_upload-7.1.0.jar
call mvn -q install:install-file -DgroupId=com.tridion.contentdelivery -DartifactId=cd_odata               -Dversion=7.1.0 -Dpackaging=jar -Dfile=cd_odata-7.1.0.jar
call mvn -q install:install-file -DgroupId=com.tridion.contentdelivery -DartifactId=cd_odata_types         -Dversion=7.1.0 -Dpackaging=jar -Dfile=cd_odata_types-7.1.0.jar
call mvn -q install:install-file -DgroupId=com.tridion.contentdelivery -DartifactId=cd_preview_web         -Dversion=7.1.0 -Dpackaging=jar -Dfile=cd_preview_web-7.1.0.jar
call mvn -q install:install-file -DgroupId=com.tridion.contentdelivery -DartifactId=cd_preview_webservice  -Dversion=7.1.0 -Dpackaging=jar -Dfile=cd_preview_webservice-7.1.0.jar
call mvn -q install:install-file -DgroupId=com.tridion.contentdelivery -DartifactId=cd_preview_ambient     -Dversion=7.1.0 -Dpackaging=jar -Dfile=cd_preview_ambient-7.1.0.jar
call mvn -q install:install-file -DgroupId=com.tridion.contentdelivery -DartifactId=cd_tcdl                -Dversion=7.1.0 -Dpackaging=jar -Dfile=cd_tcdl-7.1.0.jar

echo Installing Tridion Contextual Web Delivery libraries into the local Maven repository...
call mvn -q install:install-file -DgroupId=com.tridion.contentdelivery -DartifactId=cwd_cartridge      -Dversion=7.1.2 -Dpackaging=jar -Dfile=cwd_cartridge-7.1.2.jar
call mvn -q install:install-file -DgroupId=com.tridion.contentdelivery -DartifactId=cwd_engine         -Dversion=7.1.2 -Dpackaging=jar -Dfile=cwd_engine-7.1.2.jar
call mvn -q install:install-file -DgroupId=com.tridion.contentdelivery -DartifactId=cwd_image          -Dversion=7.1.2 -Dpackaging=jar -Dfile=cwd_image-7.1.2.jar
call mvn -q install:install-file -DgroupId=com.tridion.contentdelivery -DartifactId=cwd_resource       -Dversion=7.1.2 -Dpackaging=jar -Dfile=cwd_resource-7.1.2.jar

REM echo Installing third-party libraries into the local Maven repository...
call mvn -q install:install-file -DgroupId=com.vs -DartifactId=easylicense -Dversion=2.5 -Dpackaging=jar -Dfile=easylicense-2.5.jar
call mvn -q install:install-file -DgroupId=easylicense -DartifactId=easylicense -Dversion=2.5 -Dpackaging=jar -Dfile=easylicense-2.5.jar
call mvn -q install:install-file -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc4 -Dversion=4.0.0 -Dpackaging=jar -Dfile=sqljdbc4-4.0.jar

echo Finished
pause