Skip to content

How to add some Plugins to my own portal based on mavenized Entando

trumbitta edited this page Apr 10, 2013 · 11 revisions

How to add some Plugins to my own portal based on mavenized Entando

Adding a Plugin which doesn't depend on other Plugins

Use case

Adding entando-plugin-jpsurvey, previously known as jpsurvey

  1. Stop your servlet container of choice (Tomcat, JBoss, Jetty, ...)
  2. Add entando-plugin-jpsurvey as a maven dependency
    • groupId : org.entando.entando.plugins
    • artifactId : entando-plugin-jpsurvey
    • type : war
    • Just like this:
<!--
     The Plugin, with all its files and 
     entando-plugin-jpsurvey.jar in WEB-INF/lib
-->
<dependency>
  <groupId>org.entando.entando.plugins</groupId>
	<artifactId>entando-plugin-jpsurvey</artifactId>
	<version>${entando.version}</version>
	<type>war</type>
</dependency>

Done. You can:

  • ant WAR-build to get the war
  • or Run As --> Run on Server if you use Eclipse Indigo
  • or mvn jetty:run if you prefer Jetty

The Plugin will be there.

Adding a Plugin which depends on other Plugins

Use case

Adding entando-plugin-jpaddressbook, previously known as jpaddressbook

Same as above, and the dependencies will be resolved and installed automatically.

Easy and FTW!

Clone this wiki locally