[xwiki-devs] packaging XWiki application with maven?
Hello XWikiers, I did not find a nice way to package our reviews-application. It should yield a xar and I would have expected the xar could be built with all items. Unfortunately, I have only found a way to package the xml files in the xar and I would like to put groovy and .vm sources there... thus far I am copy and pasting. mvn -g did not help me. thank for hints. paul
Hi Paul, On Oct 2, 2008, at 12:18 PM, Paul Libbrecht wrote:
Hello XWikiers,
I did not find a nice way to package our reviews-application. It should yield a xar and I would have expected the xar could be built with all items. Unfortunately, I have only found a way to package the xml files in the xar and I would like to put groovy and .vm sources there... thus far I am copy and pasting.
Groovy sources can go in pages and thus in the XAR but vm cannot. The goal for the future is this: http://dev.xwiki.org/xwiki/bin/view/Design/ApplicationManager But nobody is working on this yet. Thanks -Vincent
mvn -g did not help me.
thank for hints.
How do I put groovy files in? Is it enough for me to have the following layout? pom.xml src - main - resources - SpaceName - xmlFileOne (no suffix but .xml) - File.grv ? At least now I tried that and File.grv got tried to be xml-parsed, which failed of course. .vm files are velocity files... they would be the same, or? thanks paul On 02-oct.-08, at 13:01, Vincent Massol wrote:
Groovy sources can go in pages and thus in the XAR but vm cannot.
The goal for the future is this: http://dev.xwiki.org/xwiki/bin/view/Design/ApplicationManager
But nobody is working on this yet.
On Oct 2, 2008, at 1:16 PM, Paul Libbrecht wrote:
How do I put groovy files in?
As I said they need to go in pages (aka xwiki documents, the xml files). I don't understand what you're asking. The XAR format *only* supports wiki pages (the xml files in xwiki format). Thanks -Vincent
Is it enough for me to have the following layout?
pom.xml src - main - resources - SpaceName - xmlFileOne (no suffix but .xml) - File.grv
? At least now I tried that and File.grv got tried to be xml-parsed, which failed of course.
.vm files are velocity files... they would be the same, or?
thanks
paul
On 02-oct.-08, at 13:01, Vincent Massol wrote:
Groovy sources can go in pages and thus in the XAR but vm cannot.
The goal for the future is this: http://dev.xwiki.org/xwiki/bin/view/Design/ApplicationManager
But nobody is working on this yet.
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
I'm asking for a converter from groovy (or other wiki syntax) to xml files then. And I would expect it natural to be done as a service of the xar plugin. paul On 02-oct.-08, at 13:38, Vincent Massol wrote:
On Oct 2, 2008, at 1:16 PM, Paul Libbrecht wrote:
How do I put groovy files in?
As I said they need to go in pages (aka xwiki documents, the xml files).
I don't understand what you're asking. The XAR format *only* supports wiki pages (the xml files in xwiki format).
Thanks -Vincent
Is it enough for me to have the following layout?
pom.xml src - main - resources - SpaceName - xmlFileOne (no suffix but .xml) - File.grv
? At least now I tried that and File.grv got tried to be xml-parsed, which failed of course.
.vm files are velocity files... they would be the same, or?
thanks
paul
On 02-oct.-08, at 13:01, Vincent Massol wrote:
Groovy sources can go in pages and thus in the XAR but vm cannot.
The goal for the future is this: http://dev.xwiki.org/xwiki/bin/view/Design/ApplicationManager
But nobody is working on this yet.
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Paul Libbrecht wrote:
I'm asking for a converter from groovy (or other wiki syntax) to xml files then. And I would expect it natural to be done as a service of the xar plugin.
How did you obtain the XML files with wiki content? I hope you didn't write them by hand... 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. Now, if the groovy/velocity content is inside a wiki document, it will get exported as any wiki content. If you're talking about .vm files located on the filesystem, it is not possible to use xars for this. Only wiki documents are included in a xar archive, but these wiki documents can contain scripts. Template Extensions (vm files located in wiki documents) are not yet supported. In the future, this is how velocity templates will be written, and they will be supported in .xar files.
On 02-oct.-08, at 13:38, Vincent Massol wrote:
On Oct 2, 2008, at 1:16 PM, Paul Libbrecht wrote:
How do I put groovy files in?
As I said they need to go in pages (aka xwiki documents, the xml files).
I don't understand what you're asking. The XAR format *only* supports wiki pages (the xml files in xwiki format).
Thanks -Vincent
Is it enough for me to have the following layout?
pom.xml src - main - resources - SpaceName - xmlFileOne (no suffix but .xml) - File.grv
? At least now I tried that and File.grv got tried to be xml-parsed, which failed of course.
.vm files are velocity files... they would be the same, or?
thanks
paul
On 02-oct.-08, at 13:01, Vincent Massol wrote:
Groovy sources can go in pages and thus in the XAR but vm cannot.
The goal for the future is this: http://dev.xwiki.org/xwiki/bin/view/Design/ApplicationManager
But nobody is working on this yet.
-- Sergiu Dumitriu http://purl.org/net/sergiu/
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. paul
Paul Libbrecht wrote:
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 http://purl.org/net/sergiu/
On 02-oct.-08, at 14:52, Sergiu Dumitriu wrote:
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?
Absolutely, this is what I want. Alternatively, having the xml document be there but referencing an external file as was discussed with Ludovic sometimes ago would be an even better solution. paul
participants (3)
-
Paul Libbrecht -
Sergiu Dumitriu -
Vincent Massol