[opencms-dev] OpenCms-Maven Plugin - new release for OpenCms 7.5
Christian.Weber at Bertelsmann.de
Christian.Weber at Bertelsmann.de
Mon Nov 2 14:53:23 CET 2009
Hi Ronen
first create the file in OpenCms. Then call vfs:sync and the file and its metadata will be created in your real filesystem.
Regards
Christian
________________________________
Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Ronen
Gesendet: Montag, 2. November 2009 10:27
An: The OpenCms mailing list
Betreff: Re: [opencms-dev] OpenCms-Maven Plugin - new release for OpenCms 7.5
Hi,
I need to write 3rd party module as you described.
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?
Thanks,
Ronen
On Mon, Sep 28, 2009 at 6:54 PM, Rodriguez, Adrian <A.Rodriguez at comundus.com> wrote:
Hello Christian,
thanks for your congratulations and for your contribution. We have updated the database scripts in the available version. About your questions:
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.
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.
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:
<plugin>
<groupId>com.comundus.maven</groupId>
<artifactId>maven-vfs-plugin</artifactId>
<executions>
<execution>
<id>clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
<execution>
<id>package</id>
<phase>package</phase>
<goals>
<goal>module</goal>
<goal>sync</goal>
<goal>publish</goal>
</goals>
</execution>
</executions>
<configuration>
<moduleVersion>1.0</moduleVersion>
<syncVFSPaths>
<syncVFSPath>/system/modules/my.module.path/</syncVFSPath>
</syncVFSPaths>
</configuration>
</plugin>
The text taken from opencms-modules.xml, has to be written in /src/main/opencms-module/opencms-module.xml
3. About debugging JSP's, I would refer you to http://www.opencms-wiki.org/Remote_debugging_OpenCms_with_Eclipse_and_Netbeans
Hope that helps
Adrián Rodríguez
-----Original Message-----
From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Chris at Nionex
Sent: Friday, September 25, 2009 11:07 AM
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] OpenCms-Maven Plugin - new release for OpenCms 7.5
Congratulations for this helpful extension. I was a little bit struggling
with the database setup. The create_table scripts are for older MySql
version an so I got UTF8 problem with resource properties. After updating it
to my database version from the OpenCms 7.5 source everything works fine.
Please let me now if you have any best practice for these topics:
1. How should be the project setup for developing custom modules with
templates and Java classes. Should one deploy the JAR directly to the webapp
or by the indirection of vfs:sync.
2. How should 3rd party modules (like OAMP Webforms) be imported? Id did it
this way:
- Import the Module to a running OpenCms
- Add the module path to the syncVFSPaths configuration in system/pom.xml
- Call vfs:sync
- Add the configuration from opencms-module.xml to
system/src/main/opencms-modules.xml
3. Is it possible to debug JSP's. Usually JSP's must be prefixed with
"/jsp/offline".
Thanks
Christian
Kai Schliemann wrote:
>
> Hello OpenCms community,
>
> comundus released a new version of the OpenCms-Maven Plugin. It works now
> with the latest version of OpenCms (7.5).
>
> For all who do not know what the plugin does, here is a short extract of
> its features:
>
> OpenCms-Maven Plugin - easy build and versioning process for OpenCms
> projects
>
> OpenCms-Maven is an open source project that has been launched by the
> comundus GmbH
> <http://opencms-maven.comundus.com/comundus/opencms/html/galleries/links/comundus>
> to ease the build and versioning process of OpenCms projects. The core of
> the project is a Maven plugin that enables full automated OpenCms builds
> and provides functionality to synchronize virtual file system resources of
> OpenCms with a real file system.
> The project's resources are currently hosted at the
> http://sourceforge.net/projects/mavplugocms/. You will also find the
> source code of the OpenCms-Maven VFS Plugin there.
>
> If you are interested in the plugin, have a look at
> http://opencms-maven.comundus.com/ or contact opencms at comundus.com.
>
>
>
> Best regards
>
> _________________________________________
>
>
>
> Kai Schliemann
>
> Senior IT-Berater
>
>
>
> comundus GmbH
>
> Schüttelgrabenring 3, D-71332 Waiblingen
>
> Telefon +49 7151-50028-0
>
> E-Mail k.schliemann at comundus.com <mailto:g.maas at comundus.com>
>
> Internet www.comundus.com <http://www.comundus.com/>
>
>
>
> Geschäftsführer Klaus Hillemeier
>
> Amtsgericht Stuttgart, HRB 264290
>
>
>
> comundus ist ein Unternehmen der IT EXCELLENCE Group
>
> _________________________________________
>
>
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
--
View this message in context: http://www.nabble.com/OpenCms-Maven-Plugin---new-release-for-OpenCms-7.5-tp25256539p25550769.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20091102/38bf95b1/attachment.htm>
More information about the opencms-dev
mailing list