Hippo Tip: Automatic Export of Document Types
By Geertjan-Oracle on Jul 06, 2011
Use this to deploy your Hippo project:
-P cargo.run -Dhippoecm.export.dir=/home/geertjan/now/content/src/main/resources
Now, when you make changes to your document types and/or create document types, those changes will automatically be saved into the "content" project (i.e., the definition of the bootstrap content of your Hippo application) in your Hippo application, which above is found in "/home/geertjan/now":
Not only will those additions/changes be persisted into the correct place (i.e., exactly into "namespaces.now" above), but they'll be registered into the correct places too. (For deletions, you need to manually use the CMS Console.)
Then remove all your target folders, optionally remove your repository (since you've now persisted your changes into your project), and restart the application with -P cargo.run as usual (does anyone know how to use GlassFish instead of Tomcat for that?) and you'll see the document types in the CMS and you can now start using them.