- Liferay DXP
- Migration
- Liferay 7.4
Liferay 7.0 to 7.4 migration: a field guide
A practical playbook for upgrading Liferay DXP 7.0 to 7.4 — auditing custom modules, upgrading code, rehearsing the database upgrade, moving search and themes, and cutting over with minimal downtime.
Liferay DXP 7.0 shipped in 2016. If your portal still runs on it, you are carrying an aging platform: older Elasticsearch, older front-end tooling, and none of the features that make Liferay 7.4 pleasant to build on — Objects, Client Extensions, a mature page builder with Fragments and Style Books, and Search Blueprints.
I'm currently leading a 7.0 → 7.4 migration for a global pharmaceutical enterprise. This is the playbook I use, minus anything client-specific. It isn't a replacement for Liferay's official upgrade documentation — it's the order of operations and the judgement calls that the documentation can't make for you.
Go straight to 7.4 — don't step through every version
Liferay supports upgrading a 7.x database directly to 7.4, so there's no need to stop at 7.1, 7.2 and 7.3 on the way. What you can't skip is the reading: because you're jumping several versions, you inherit every breaking change in between. Read the breaking-changes notes for each version from 7.1 to 7.4 before you estimate anything.
The database is rarely the hard part. Custom code, themes and search are where migrations go long.
Step 1 — Inventory everything
Before touching code, build a complete inventory and decide the fate of each item:
- Custom OSGi modules — portlets, services, model listeners, overrides and fragments of core behaviour.
- Themes and layout templates — and how much custom CSS and JavaScript they carry.
- Web content structures, templates and ADTs — especially FreeMarker templates that call services directly.
- Workflows, integrations and scheduled jobs — anything that talks to an external system.
- Search configuration — Elasticsearch version, custom indexers and query contributors.
- Data volume — database size, document library size, and how many versions of each asset you keep.
For each item, choose one of three outcomes: upgrade it, replace it with something 7.4 does out of the box (Objects, Fragments, Search Blueprints), or retire it. Retiring is the cheapest migration there is, and most long-lived portals have more dead code than anyone expects.
Step 2 — Upgrade the code
Set up a Liferay Workspace that targets your 7.4 update, so every module compiles against the 7.4 APIs through the target platform. Then work through the modules in order of business importance:
- Fix compilation errors caused by removed or changed APIs.
- Regenerate Service Builder code and review custom finders and SQL.
- Re-test JSPs, taglibs and front-end code — these break quietly rather than loudly.
- Replace hand-rolled features with 7.4 equivalents where the inventory said so.
Liferay's Upgrade Planner in Dev Studio can flag many of the API changes automatically. Treat it as a checklist generator, not an autopilot — the planner finds what changed, not what your business logic needs.
Step 3 — Rebuild the front end, don't port it
Old 7.0 themes rarely port cleanly. Rebuild the theme on current 7.4 tooling and move brand decisions — colours, typography, spacing — into Style Books, so content teams can build pages from Fragments without touching code. New interactive features belong in Client Extensions, which live outside the core and make your next upgrade dramatically easier.
Step 4 — Rehearse the database upgrade
Copy production — database and document library — to a staging environment and run Liferay's database upgrade tool against it. Then do it again. Rehearsals give you three things:
- A list of upgrade failures to fix while nobody is waiting.
- An exact duration, which becomes your maintenance window.
- A repeatable runbook for cut-over day.
Prune before you upgrade: old web content and document versions, unused sites and orphaned data all slow the upgrade down. Every row you delete is a row the upgrade never processes. After each run, use the Gogo shell (upgrade:check and upgrade:list) to confirm every module's upgrade steps completed.
Step 5 — Move search last, but plan it first
7.0 deployments typically ran Elasticsearch versions that 7.4 no longer supports, so plan a new cluster on a version from Liferay's compatibility matrix for your exact update. Skip indexing during the database upgrade and run a full reindex afterwards. This is also the moment to retire custom query code: Search Blueprints can replace a surprising amount of it with configuration that business users can tune.
Step 6 — Validate like a QA team
Don't rely on clicking around. Compare the old and new systems systematically:
- Counts of sites, pages, web content, documents, users, roles and permissions.
- Friendly URLs and redirects — broken URLs are an SEO and support problem.
- FreeMarker templates and ADTs rendering on representative pages.
- Workflows, integrations and scheduled jobs running end to end.
- Page speed under realistic load.
Step 7 — Cut over with a rollback plan
On the day: freeze content (or capture the delta), take the final production copy, run the rehearsed upgrade, deploy modules, reindex, smoke-test, and switch traffic. Keep the old environment intact until the new one has survived real users. A rollback you never use is cheap insurance.
After go-live: make the next upgrade easy
The real prize of moving to 7.4 is what you build next. Use Objects for new data models, Client Extensions for new front-ends and integrations, and Fragments and Style Books for pages. Each keeps customisation out of the core — which turns the next upgrade into a project instead of a crisis.
Planning a Liferay upgrade? I offer Liferay upgrade assessments and full migrations — or tell me about your portal and I'll give you an honest read on scope and risk.