I'm trying to build a prototype version of Mȉmis in Cocoon. I did a previous prototype in Cocoon 2.2, but on the recommendation of the development list, I'm migrating to version 3.
Creating a skeleton for the application was a simple Maven archetype:
      mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create \
           -DarchetypeGroupId=org.apache.cocoon.archetype-block \
           -DarchetypeArtifactId=cocoon-archetype-block \
           -DarchetypeVersion=3.0.0-alpha-2 \
           -DgroupId=org.dhappy.mimis \
           -DartifactId=cocoon
    
    
    Once I moved in my generator, I couldn't get it to compile. I got a bunch of errors:
 expected
      src/main/java/org/dhappy/mimis/cocoon/GraphWalkGenerator.java:[47,11] class or interface expected
    ]]>
    This was because the compiler, by default, builds for an older version of java. To fix it, I added to pom.xml:
        org.apache.maven.plugins 
        maven-compiler-plugin 
        2.0.2 
        
          1.5 
          1.5 
         
      
    ]]>
    Additionally, to add support for Neo4j, to pom.xml, I added:
        org.neo4j 
        neo4j-kernel 
        1.0 
      
    ]]>
    To make the generator available to cocoon, I edited src/main/resources/META-INF/cocoon/spring/block-servlet-service.xml and added:
    ]]>
    
    Then to src/main/resources/COB-INF/sitemap.xmap, I added:
        
           
           
         
      
    ]]>
    Now when I run the servlet container with the command:
mvn jetty:run
    I can access the application at: http://localhost:8888/mimis.
The next step in the process is to import some data. I want to pull in a specially formatted filesystem: