<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16915" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=421575113-02112009><FONT face=Arial color=#0000ff size=2>Hi
Ronen</FONT></SPAN></DIV>
<DIV><SPAN class=421575113-02112009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=421575113-02112009><FONT face=Arial color=#0000ff size=2>first
create the file in OpenCms. Then call vfs:sync and the file and its metadata
will be created in your real filesystem.</FONT></SPAN></DIV>
<DIV><SPAN class=421575113-02112009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=421575113-02112009><FONT face=Arial color=#0000ff
size=2>Regards</FONT></SPAN></DIV>
<DIV><SPAN class=421575113-02112009><FONT face=Arial color=#0000ff
size=2>Christian</FONT></SPAN></DIV>
<DIV><SPAN class=421575113-02112009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>Im Auftrag von
</B>Ronen<BR><B>Gesendet:</B> Montag, 2. November 2009 10:27<BR><B>An:</B> The
OpenCms mailing list<BR><B>Betreff:</B> Re: [opencms-dev] OpenCms-Maven Plugin
- new release for OpenCms 7.5<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Hi,</DIV>
<DIV>I need to write 3rd party module as you described.</DIV>
<DIV>How do I generate the files in folder vfs-metadata? Do I need to do it by
hand for each file and directory? Or can I generate the files automatically
some way?<BR></DIV>
<DIV><BR></DIV>
<DIV>Thanks,</DIV>
<DIV>Ronen</DIV><BR>
<DIV class=gmail_quote>On Mon, Sep 28, 2009 at 6:54 PM, Rodriguez, Adrian
<SPAN dir=ltr><<A
href="mailto:A.Rodriguez@comundus.com">A.Rodriguez@comundus.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello
Christian,<BR><BR>thanks for your congratulations and for your contribution.
We have updated the database scripts in the available version. About your
questions:<BR><BR>1. We usually create two Maven artifacts. One of type pom,
which uses the maven-vfs-plugin, and that includes the VFS-files and the
opencms-module.xml file, like in the module system, but including directly
the <module> element, taken from opencms-modules.xml. The other
artifact is of type jar and will be referenced as dependency by the webapp
module. This two artifacts will be referenced as modules by the parent
project.<BR><BR>2. You should create a new Maven module for the 3rd party
OpenCms module like the one I describe in the previous answer. If you have
the sources of the OpenCms module, you can also remove the jar corresponding
to those sources, and generate this jar as an artifact in each Maven
Build.<BR>So, the process should be the same you describe but in a new
module of type pom which includes the plugin in the build section, like
this:<BR> <plugin><BR>
<groupId>com.comundus.maven</groupId><BR>
<artifactId>maven-vfs-plugin</artifactId><BR>
<executions><BR>
<execution><BR>
<id>clean</id><BR>
<phase>clean</phase><BR>
<goals><BR>
<goal>clean</goal><BR>
</goals><BR>
</execution><BR>
<execution><BR>
<id>package</id><BR>
<phase>package</phase><BR>
<goals><BR>
<goal>module</goal><BR>
<goal>sync</goal><BR>
<goal>publish</goal><BR>
</goals><BR>
</execution><BR>
</executions><BR>
<configuration><BR>
<moduleVersion>1.0</moduleVersion><BR>
<syncVFSPaths><BR>
<syncVFSPath>/system/modules/my.module.path/</syncVFSPath><BR>
</syncVFSPaths><BR>
</configuration><BR>
</plugin><BR><BR>The text taken from opencms-modules.xml, has to
be written in /src/main/opencms-module/opencms-module.xml<BR><BR>3. About
debugging JSP's, I would refer you to <A
href="http://www.opencms-wiki.org/Remote_debugging_OpenCms_with_Eclipse_and_Netbeans"
target=_blank>http://www.opencms-wiki.org/Remote_debugging_OpenCms_with_Eclipse_and_Netbeans</A><BR><BR>Hope
that helps<BR><BR>Adrián Rodríguez<BR>
<DIV>
<DIV class=h5><BR>-----Original Message-----<BR>From: <A
href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</A>
[mailto:<A
href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</A>]
On Behalf Of Chris@Nionex<BR>Sent: Friday, September 25, 2009 11:07
AM<BR>To: <A
href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</A><BR>Subject:
Re: [opencms-dev] OpenCms-Maven Plugin - new release for OpenCms
7.5<BR><BR><BR>Congratulations for this helpful extension. I was a little
bit struggling<BR>with the database setup. The create_table scripts are for
older MySql<BR>version an so I got UTF8 problem with resource properties.
After updating it<BR>to my database version from the OpenCms 7.5 source
everything works fine.<BR><BR>Please let me now if you have any best
practice for these topics:<BR><BR>1. How should be the project setup for
developing custom modules with<BR>templates and Java classes. Should one
deploy the JAR directly to the webapp<BR>or by the indirection of
vfs:sync.<BR><BR>2. How should 3rd party modules (like OAMP Webforms) be
imported? Id did it<BR>this way:<BR>- Import the Module to a running
OpenCms<BR>- Add the module path to the syncVFSPaths configuration in
system/pom.xml<BR>- Call vfs:sync<BR>- Add the configuration from
opencms-module.xml to<BR>system/src/main/opencms-modules.xml<BR><BR>3. Is it
possible to debug JSP's. Usually JSP's must be prefixed
with<BR>"/jsp/offline".<BR><BR>Thanks<BR>Christian<BR><BR><BR><BR><BR><BR>Kai
Schliemann wrote:<BR>><BR>> Hello OpenCms community,<BR>><BR>>
comundus released a new version of the OpenCms-Maven Plugin. It works
now<BR>> with the latest version of OpenCms (7.5).<BR>><BR>> For
all who do not know what the plugin does, here is a short extract of<BR>>
its features:<BR>><BR>> OpenCms-Maven Plugin - easy build and
versioning process for OpenCms<BR>> projects<BR>><BR>>
OpenCms-Maven is an open source project that has been launched by
the<BR>> comundus GmbH<BR>> <<A
href="http://opencms-maven.comundus.com/comundus/opencms/html/galleries/links/comundus"
target=_blank>http://opencms-maven.comundus.com/comundus/opencms/html/galleries/links/comundus</A>><BR>>
to ease the build and versioning process of OpenCms projects. The core
of<BR>> the project is a Maven plugin that enables full automated OpenCms
builds<BR>> and provides functionality to synchronize virtual file system
resources of<BR>> OpenCms with a real file system.<BR>> The project's
resources are currently hosted at the<BR>> <A
href="http://sourceforge.net/projects/mavplugocms/"
target=_blank>http://sourceforge.net/projects/mavplugocms/</A>. You will
also find the<BR>> source code of the OpenCms-Maven VFS Plugin
there.<BR>><BR>> If you are interested in the plugin, have a look
at<BR>> <A href="http://opencms-maven.comundus.com/"
target=_blank>http://opencms-maven.comundus.com/</A> or contact <A
href="mailto:opencms@comundus.com">opencms@comundus.com</A>.<BR>><BR>><BR>><BR>>
Best regards<BR>><BR>>
_________________________________________<BR>><BR>><BR>><BR>>
Kai Schliemann<BR>><BR>> Senior
IT-Berater<BR>><BR>><BR>><BR>> comundus GmbH<BR>><BR>>
Schüttelgrabenring 3, D-71332 Waiblingen<BR>><BR>> Telefon +49
7151-50028-0<BR>><BR>> E-Mail <A
href="mailto:k.schliemann@comundus.com">k.schliemann@comundus.com</A>
<mailto:<A
href="mailto:g.maas@comundus.com">g.maas@comundus.com</A>><BR>><BR>>
Internet <A href="http://www.comundus.com"
target=_blank>www.comundus.com</A> <<A href="http://www.comundus.com/"
target=_blank>http://www.comundus.com/</A>><BR>><BR>><BR>><BR>>
Geschäftsführer Klaus Hillemeier<BR>><BR>> Amtsgericht Stuttgart, HRB
264290<BR>><BR>><BR>><BR>> comundus ist ein Unternehmen der IT
EXCELLENCE Group<BR>><BR>>
_________________________________________<BR>><BR>><BR>><BR>><BR>><BR>>
_______________________________________________<BR>> This mail is sent to
you from the opencms-dev mailing list<BR>> To change your list options,
or to unsubscribe from the list, please visit<BR>> <A
href="http://lists.opencms.org/mailman/listinfo/opencms-dev"
target=_blank>http://lists.opencms.org/mailman/listinfo/opencms-dev</A><BR>><BR><BR>--<BR>View
this message in context: <A
href="http://www.nabble.com/OpenCms-Maven-Plugin---new-release-for-OpenCms-7.5-tp25256539p25550769.html"
target=_blank>http://www.nabble.com/OpenCms-Maven-Plugin---new-release-for-OpenCms-7.5-tp25256539p25550769.html</A><BR>Sent
from the OpenCMS - Dev mailing list archive at
Nabble.com.<BR><BR><BR>_______________________________________________<BR>This
mail is sent to you from the opencms-dev mailing list<BR>To change your list
options, or to unsubscribe from the list, please visit<BR><A
href="http://lists.opencms.org/mailman/listinfo/opencms-dev"
target=_blank>http://lists.opencms.org/mailman/listinfo/opencms-dev</A><BR><BR>_______________________________________________<BR>This
mail is sent to you from the opencms-dev mailing list<BR>To change your list
options, or to unsubscribe from the list, please visit<BR><A
href="http://lists.opencms.org/mailman/listinfo/opencms-dev"
target=_blank>http://lists.opencms.org/mailman/listinfo/opencms-dev</A></DIV></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>