Menu

Maven Archetypes

Ivan

OpenInfinity Archetypes

Now there are 4 types of modules that you can build via Maven Archetypes:

Portal Platform Archetype

This archetype was created on base of the Health Monitoring module. Result of use will be simple portlet for Liferay.

Module has liferay-maven-plugin connected. It may help you deploy resulted war package into the Liferay's deploy folder. All things that you have to do are:

  • Update autoDeployDir parameter in the root pom.xml file
  • In console, execute command mvn liferay:deploy
Service Platform Archetype

Archetype was created to help in creating modules that have to be runned via Mule

Spring Batch Archetype
BAS Archetype

How to generate project from the existing archetype

1. If you have locally installed archetype just execute following command:


mvn archetype:generate -DarchetypeArtifactId=ARTIFACT_ID -DarchetypeGroupId=GROUP_ID -DarchetypeVersion=VERSION


2. If previous option doesn’t work for you then try to build this archetype from scratch:

  • Download sources
  • Execute mvn clean install command to build and add artifact in your local maven repository;
  • Try to generate project according to the step 1.
Useful links

MongoDB Logo MongoDB