Archetype Project to create an OpenCms Module with Maven.
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 application is as easy as executing:
mvn archetype:generate -DarchetypeCatalog=http://bp-cms-commons.sourceforge.net/m2repo Select option 1, set properties and that's all!
if you have problems (folder names like '__artifactId__' ) try the full qualified name of the archetype Plugin:
mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate -DarchetypeCatalog=http://bp-cms-commons.sourceforge.net/m2repo
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.) Choose a number: (1): 1 Define value for projectName: : Demo Module Content Define value for groupId: : at.infonova.opencms.modules.demo Define value for artifactId: : at.infonova.opencms.modules.demo.content Define value for version: 1.0-SNAPSHOT: : Define value for package: at.infonova.opencms.modules.demo: : at.infonova.opencms.modules.demo.content
The artifactId should be a full qualified name. This will be the name of your OpenCms Module.
Maven Reposiotry: http://bp-cms-commons.sourceforge.net/m2repo/
Maven Site Documentation: http://bp-cms-commons.sourceforge.net/m2site/