On 02-oct.-08, at 14:08, Sergiu Dumitriu wrote:
How did you obtain the XML files with wiki
content? I hope you didn't
write them by hand...
No.
The normal way is to write documents in a running
wiki, and use the
"Print->Export as XAR" menu entry, or the Import/Export application.
But that way lacks some synchronization from an IDE to the XWiki, that
sync is only done with manual copy and paste (and IDE is really useful
for at least groovy editing).
Hence the natural wish to:
- build a xar as part of mvn
- upload the xar as part of a clean deployment
Currently this is only done after I export from my xwiki and this is
cumbersome I find.
Maven has no problem in creating a xar from documents with code inside them.
OK, so you mean that you want to write just the groovy/velocity code,
and let mvn build the surrounding XML? It would be do-able, but the
document will have some default values (for the author and the version,
for example). Is that what you want?
--
Sergiu Dumitriu