Imeji Continuous Integration

From MPDLMediaWiki
Jump to navigation Jump to search

This page describes how the continuous integration is done fo imeji

imeji POM[edit]

  • Define the SCM
  • Add a new profile
     <!-- Because we defined the war name in the POM, maven search for the wrong war name. Here we fix it-->


  1. Create a project group (imeji)
  2. Create a project (imeji)
    1. Use PM from Git
    2. Use option Checkout multi-module project in single directory
  3. Add a new new Goal clean tomcat7:redeploy with arguments --batch-mode --non-recursive


  • On server, log as root and add into settings.xml (/root/.m2/settings.xml) a new server:


  • Set the admin user in conf/tomcat-users.xml (admin is to use html administration page)(change the passwords)
<role rolename="manager-gui"/>
<role rolename="manager-text"/>
<role rolename="manager-script"/>
<user username="admin" password="password" roles="manager-gui"/>
<user username="continuum" password="password" roles="manager-script,,manager-text"/>
  • Edit context.xml (important by undeploy, otherwise the imeji.war can not be removed)
<Context antiJARLocking="true" antiResourceLocking="true">