[opencms-dev] OpenCms IDE-support (maven or other solutions)

Harald Brabenetz brabenetz at gmx.net
Tue May 29 21:57:29 CEST 2012


Module Project:
I fixed the bp-cms-commons - archetype for maven modules (the archetype-catalog.xml File was corrupt):
This is the easiest way to create an opencms module with maven (build with 'mvn install', create eclipse config with 'mvn eclipse:eclipse', and so on ...)
An update to OpenCms 8.0.4 (on the central maven repo) should not be difficult (you must update the version in pom.xml and maybe update the default opencms-configurations for the unittests).

For deployment on my local opencms-instance during development, I used the following process:
1. shutdown tomcat with opencms
2. build and copy my opencms modules zip-Files to a temporary folder
3. use cmsshell to delete/import/replace the modules:
4. restart tomcat with opencms
(This four steps can also be done automatically)

The cmsshell script for Unix works fine, but I must have replaced the Windows-Batch script with the following:

For Creating a preconfigured OpenCms-WAR which already have your Modules included, then make a look to the following Project:
(One WAR-Project depends on the others. Single config-Files can be overwritten within /src/main/webapp/WEB-INF/config/. Modules can be added as simple dependency in the pom.xml)

I hope this helps.

With friendly regards,

-------- Original-Nachricht --------
> Datum: Mon, 28 May 2012 14:34:19 -0700 (PDT)
> Von: Marc Johnen <opencms at johnen.biz>
> An: opencms-dev at opencms.org
> Betreff: [opencms-dev]  OpenCms IDE-support (maven or other solutions)

> Hello everyone,
> I found four different implementations based on maven to get some kind of
> support for eclipse
> or netbeans:
> http://opencms-maven.comundus.com/home/index.html
> http://redmine.synyx.org/projects/maven-opencms-plugin/wiki/Wiki
> http://code.google.com/p/octools/
> http://bp-cms-commons.svn.sourceforge.net/viewvc/bp-cms-commons/opencms_commons/
> Only the last one seems to be working with the latest version of opencms,
> but the documentation
> seems to be outdated and I'm not sure what it is capable of.
> I used to use the maven build of comundus for earlier version and liked it
> for the ability to
> deploy a completely preconfigured system including content. Also i read in
> the mailing list that
> support for 8 is planned, but I need something right now.
> Also I like
> http://www.redstardevelopment.nl/opencms/opencms/en/opencms/plugin/ very
> much
> for quick changes of module jsps. Other than that it is still quite
> limited
> in it's functions.
> I had a look at
> http://www.opencms-wiki.org/wiki/Development_Environment_Setup_Options as
> well.
> The "alkacon-way" does not seems to be very comfortable to me
> (http://www.opencms-wiki.org/wiki/Developing_OpenCms_with_Eclipse#Create_OpenCms_Modules).
> So I was wondering what people use to develop (modules) for OpenCms and if
> I
> may be missing some
> nice options.
> My requirements would be:
> - fully configured build path in eclipse, so I can imediately see errors i
> made and use auto-completion
> as well as beeing able to debug everything including the core of OpenCms
> - a complete deployment procedure like with the comundus-plugin would be
> nice to have
> - synchronizing all resources including content to a local filesystem 
> All this makes me think wether anyone has thought about or planned to
> merge
> all or some
> of the approaches? They seem to be quite similar and obviously everyone
> could benefit from
> a cooperation.
> I'm happy about any contributions.
> Greetings
> Marc Johnen
> http://www.johnen.biz
> -- 
> View this message in context:
> http://old.nabble.com/OpenCms-IDE-support-%28maven-or-other-solutions%29-tp33921532p33921532.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/cgi-bin/mailman/listinfo/opencms-dev

Harald Brabenetz

Mauergasse 9
8020 Graz

Tel.. +43 664 1221025
Fax: +43 820 220262587

E-mail: brabenetz at gmx.net
Skype: brabenetz
Google-Talk: brabenetz
URL: http://www.brabenetz.net

More information about the opencms-dev mailing list