Liferay DXP migration

Configure OLD 6.2 Liferay Portal in local env

  • Get mysql dump and store in local filesystem
  • Start mysql docker container with 6.2 liferay mysql database
docker run --name xxx_62 -v /PROJECTS/xxx/mysql:/docker-entrypoint-initdb.d -e MYSQL_ROOT_PASSWORD=xxx -d mysql
  • Configure buid.properties and buid.amartinez.properties in Liferay 6.2 workspace
app.server.parent.dir=${sdk.dir}/../bundle/liferay-portal-6.2-ee-sp11/tomcat-7.0.42
app.server.tomcat.lib.global.dir = /home/amartinez/ANGEL/PROJECTS/xxx/bundle/liferay-portal-6.2-ee-sp11/tomcat-7.0.42/lib/ext
app.server.tomcat.deploy.dir = /home/amartinez/ANGEL/PROJECTS/xxx/bundle/liferay-portal-6.2-ee-sp11/tomcat-7.0.42/webapps
app.server.parent.dir = /home/amartinez/ANGEL/PROJECTS/xxx/bundle/liferay-portal-6.2-ee-sp11
app.server.tomcat.dir = /home/amartinez/ANGEL/PROJECTS/xxx/bundle/liferay-portal-6.2-ee-sp11/tomcat-7.0.42
app.server.type = tomcat
app.server.tomcat.portal.dir = /home/amartinez/ANGEL/PROJECTS/xxx/bundle/liferay-portal-6.2-ee-sp11/tomcat-7.0.42/webapps/ROOT
  • In Eclipse IDE import Liferay Projects From Plugins SDK
  • Configure Liferay 6.2.10 in Eclipse Servers view
  • Configure in portal-ext.properties docker database
  • Get IP
docker inspect xxx_62 | grep \"IPAddress\"
  • Set database configuration in portal-ext.properties
jdbc.default.url=jdbc:mysql://172.17.0.3:3306/xxxxdb?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=xxxext
jdbc.default.password=xxxext

#Download Liferay 6.2 src and unpackage into workspace and change name folder to portal-master

#Execute ant jar in portal-master root folder

#Change to Liferay Plugins Perspective

#In every Java project right-click over project and select Liferay > Convert to Liferay Plugin Project

#Now, every Eclipse Java error disapear!!

#Clone Liferay 6.2.10 project SDK Workspace


Latest Posts

  • Ansible get started
    instalar ansible en vuestro maquina local. En mi caso, ubuntu: Configurar las ips de los hosts a gestionar con ansible: Importante, se…
    Read More →
  • Apache Tunning for Liferay
    vim /etc/sysconfig/httpd First change default prefork MPM for mutli-thread & multi-process worker MPM: vim /etc/httpd/conf/httpd.conf…
    Read More →
  • Liferay DXP migration
    Configure OLD 6.2 Liferay Portal in local env Get mysql dump and store in local filesystem Start mysql docker container with 6.2 liferay…
    Read More →
  • Redis high availavility installation
    Cookbook to install redis in high availability in master-slave tipology Install redis in a host <APP_SERVER_1_IP> Fill form Configure…
    Read More →
  • Git for dummies
    The basis of any computer project is the SCM. Without a good SCM it will be difficult to reach a good port. So we want to show some first…
    Read More →