Skip to content

How to start my own portal based on mavenized Entando

Matteo Emanuele M edited this page Jul 11, 2013 · 24 revisions

How to start my own portal based on mavenized Entando

Even if these instructions are perfectly valid you can check out a more comprehensive guide here.

Use case

I work at My Company, whose website is http://www.mycompany.com/

Before Entando v2.4.0, I was able to instantiate a portal myNewPortal from jAPS 2.0 entando.

Now I want to do it with mavenized Entando.

  1. Create a new maven project and, when asked:
    • Use the entando-archetype-portal-generic archetype
    • groupId : com.mycompany.projects
    • artifactId : myNewPortal
    • package : com.mycompany.projects.myNewPortal
  2. Check and edit src/main/filters/filter-development-unix.properties (or filter-development-windows.properties for Windows machines)
  3. Check and edit buildProperties.xml

Done. You can:

  • mvn package to get the war in development mode
  • or Run As --> Run on Server if you use Eclipse Indigo
  • or mvn clean jetty:run if you prefer Jetty

Note: Only for v3.2.0:

The default DBMS is Derby, if you want to change:

  1. Go to Administration Area > Tools > Database and Create a Backup > Execute Backup
  2. Edit the filters configuration (add comments on the rows about "Database Configuration: DERBY" and remove comments on the rows about the DBMS you want)
  3. Create the database tables running the proper ant task e.g. ant MySQL-db-create or ant PG-db-create

When you are ready to deploy, check and edit src/main/filters/filter-production.properties and launch ant WAR-build.