[opencms-dev] Maven project

Rodriguez, Adrian A.Rodriguez at comundus.com
Wed Jan 21 16:46:38 CET 2009

Hi Cristina,


 as you write, in that way works. But perhaps you would prefer having a pom.xml for each module. In that case, you should have to create a project like the 'system' one. In the pom.xml of this new project, you would include only the path to your module in the <syncVFSPaths> element.


If I understood well, you are trying to import modules into OpenCms using vfs:sync. You can't do that, because instead of the file 'manifest.xml', the Maven Plugin expects a directory called vfs-metadata, which is a sibling directory of vfs and contains the metadata for each file and folder in separate files. This ~folder.xml file, for instance, is located in  this vfs-metadata folder. 

However, you can import the module using the standard OpenCms functionality, and then execute vfs:sync to have your module exported in your file system.





From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Cristina Hernández Sánchez
Sent: Wednesday, January 21, 2009 3:57 PM
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] Maven project


Hello, I've got new doubts ;)

I've imported my own module in OpenCms workplace (from another project in OpenCms, this module was inside system/modules), so to make sync I follow the maven goal, but it didn't appear in module system in eclipse, so I add this module to the pom.xml in system module, I make sync again and finally I've got the module in eclipse workspace, I did well??

but when I tried to add opencms modules like calendar, survey, webforms, comments, etc I can't do like the way I've tell before. the error tells that it can't find ~folder.xml in the directory... this is because this modules need "special changes" or something like that???

thank you very much


Nuevo Windows Live, un mundo lleno de posibilidades Descúbrelo. <http://www.microsoft.com/windows/windowslive/default.aspx> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20090121/986429a3/attachment.html>

More information about the opencms-dev mailing list