Hi all,
Before launch the very first version of XEM (XWiki Enterprise Manager)
I need to make some automatic installation system. At minimum XEM need
:
- root wiki which manage wiki farm
- default template wiki from which other sub wiki can be created
First the actual existing tools to manage package/installation : XE
has generic installation system base on HSQLDB and Jetty that simply
generate the HSQL database file at build time and package this in
installation system.
XEM can reuse most of this mechanism except for one part : HSQLDB.
This database system can manage only one database which is unusable
for multi-wiki purpose. It's mainly on that part I need to discuss
what can be done and how.
I already made some work around and think of what solutions I see.
1 - First I made an "automatic installation page" that is a root wiki
document with attached xar. When that page is rendered, it check if
there already exists at least one template wiki and, if not, create it
from attached xar. Base on that it will be possible to make maven
plugin able to attach XE xar at build time.
2 - Another solution is to work more on installation runtime and to
ask user all necessary informations (database host, user, login, etc.)
and initialize database with root wiki and all template or sub wiki we
need.
The first solution strength is that it doesn't depend on the way root
wiki is deployed on database (installation init, import xar, etc.) but
it load down root wiki with attached xar file and need to always check
if XEM is already initialized. I think at long term the two solutions
has to be possible but what of these (and other solutions I forget I'm
sure) is most useful for other project or much more fast to implement
that can be the first step ?
Regards,
--
Thomas Mortagne
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs