> > I have my own repository.xml file to use and this file is dynamically > generated before starting the standalone server, so that the server can > connect to different persistence, and have all kinds of dynamic > settings, controllably. >
I did a similar thing by starting with the jackrabbit-webapp WAR artifact. I used Maven overlays to build another WAR artifact, adding my own init servlet to do some import of CND's etc.. I also modified the various init params and such. I found the tricky part of all of this was the initialization of the script. I eventually found that the easiest path was to use the bootstrap.properties method, but I was never sure about the best way to handle this and haven't revisited it yet to clean it up.
