Now the fun part, getting it to run. If you’ve followed step 1 and step 2, we have everything we need now. The end is in sight…
Open up Eclipse, and lets get started:
- Run-as “dd4t-2-java clean install”
- Expected Warnings (JARs not in Maven Central)
- [WARNING] The POM for com.tridion:cd_cache:jar:8.1.1-1005 is missing, no dependency information available
- [WARNING] The POM for com.vs.ezlicrun:easylicense:jar:2.5 is missing, no dependency information available
- [WARNING] The POM for com.tridion:cd_core:jar:8.1.0 is missing, no dependency information available
- [WARNING] The POM for com.tridion:cd_model:jar:8.1.0 is missing, no dependency information available
- Install missing JARs Locally
- Download the following JARs to your machine, from the SDL install media
- cd_model-8.1.0.jar
- cd_cache-8.1.0.jar
- cd_core-8.1.0.jar
- easylicense-2.5.jar
- Navigate to the folder they are stored in
- Execute the following
- mvn install:install-file -Dfile=cd_core-8.1.0.jar -DgroupId=com.tridion -DartifactId=cd_core -Dversion=8.1.0 -Dpackaging=jar
- mvn install:install-file -Dfile=cd_cache-8.1.0.jar -DgroupId=com.tridion -DartifactId=cd_cache -Dversion=8.1.0 -Dpackaging=jar
- mvn install:install-file -Dfile=cd_model-8.1.0.jar -DgroupId=com.tridion -DartifactId=cd_model -Dversion=8.1.0 -Dpackaging=jar
- mvn install:install-file -Dfile=easylicense-2.5.jar -DgroupId=com.vs.ezlicrun -DartifactId=easylicense -Dversion=2.5 -Dpackaging=jar
- Execute the following
- TODO: Update all references to 8.1.1 once Maven Central is updated and all the dependent POMs are updated
- Download the following JARs to your machine, from the SDL install media
- Expected Warnings (JARs not in Maven Central)
- Re-run Run-as “dd4t-2-java clean install”
- Project should now build successfully
- Right click project and navigate to Maven > Update Maven Project
- Select OK
- When ready to debug/run the project
- Check the environment you will connect to
- Navigate to src\main\resources\WEB-INF\classes and open cd_client_conf.xml
- Check the value of <DiscoveryService ServiceUri=”http://SERVER:PORT/discovery.svc”/> for the correct environment
- Navigate to src\main\resources\WEB-INF\classes and open cd_client_conf.xml
- Debug-as “dd4t-2-java debug”
- You maybe asked to allow in Windows Firewall
- Open preferred browser, and navigate to desired page e.g. http://localhost:8080/ww/en/index.html
- Bob’s your uncle! Any configured breakpoints will now be hit!
- Check the environment you will connect to