Archetype Project to create an OpenCms Webapp with Maven. Create dependencies to the OpenCms Modules who should be included.
OpenCms is a Content Management System that is based on Open Source Software. Complex Intranet and Internet websites can be quickly and cost-effectively created, maintained and managed.
This archetypes allows you to generate a template for an OpenCms Module Package.
So, creating the template of the web-application is as easy as executing:
mvn archetype:generate -DarchetypeCatalog=http://bp-cms-commons.sourceforge.net/m2repo Select option 2, set properties and that's all!
after calling 'mvn archetype:generate' the following Properties must be defined.
Choose archetype: 1: ... -> opencms-module-archetype (Archetype Project to create an OpenCms Module with Maven.) 2: ... -> opencms-webapp-archetype (Archetype Project to create an OpenCms Webapp with Maven.) Choose a number: (1,2): 2 Define value for projectName: : Infonova OpenCms Demo Define value for groupId: : at.infonova.opencms Define value for artifactId: : infonova-opencms-demo Define value for version: 1.0-SNAPSHOT: : Define value for package: at.infonova.opencms: :
<dependency> <groupId>org.opencms.modules</groupId> <artifactId>org.opencms.welcome</artifactId> <version>7.5.2</version> </dependency>
The OpenCms "zip"-Package will be automatically copied to the "/WEB-INF/packages/modules" Folder.
The JAR of the Modules will be copied to the "WEB-INF/lib" Folder.
Maven Reposiotry: http://bp-cms-commons.sourceforge.net/m2repo/
Maven Site Documentation: http://bp-cms-commons.sourceforge.net/m2site/