Hello
Here are steps to build Lenya with JCR Repository and using default publication from JCR Repository
1. SVN checkout Lenya 1.4
2. copy jcr-1.0.jar to cocoon\lib\core
3. Add src/module-optional in modules.root.dirs
in file build.properties
ie. modules.root.dirs=src/modules:src/pubs/default/modules:src/modules-optional
4. In cocoon\local.build.properties write exclude.validate.jars=true also change #include.block.jcr=false to
include.block.jcr=true
5. Apply patches provided in Bug 40433, 40443, 40445
6. Change patch.webapp property to true in src\targets\test-build.xml
7. build lenya
8. Start Lenya
9. Import default publication to jcr repository using import usecase ie. open
http://localhost:8888/index.html?lenya.usecase=jcr.import
and select your publication (default in this case) from drop list
10. Stop lenya
11. Change nodefactory source in WEB-INF/cocoon.xconf to JCRNodeFactory
ie . change <component class="org.apache.lenya.cms.repository.SourceNodeFactory" logger="lenya.nodefactory.source" role="
org.apache.lenya.cms.repository.NodeFactory"/> to <component class="org.apache.lenya.cms.jcr.JCRNodeFactory"
logger="lenya.nodefactory.source" role="org.apache.lenya.cms.repository.NodeFactory
"/>
12. Start lenya
13. Open default publication and data is coming from JCRRepository ie. webapp\jcr-repository
AND good thing is it works fine now.
Thanks
Rakesh
