Legacy Knowledge Base
Published Sep. 10, 2025

Deploying an EXT module on PaaS

Written By

Daniel Carrillo Broeder

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • Deploying an EXT extension results in the extension being lost after the environment restarts.

Environment

  • Quarterly Releases 2023.Q3.3+.
  • PaaS

Resolution

  • The use of EXT modules is discouraged. Please explore alternative extensions before proceeding, if possible.
  • Starting from 2023.q3.3+, the marketplace/override is no longer used so you will need to create a custom deployment script to deploy it.
    1. Create the directory liferay/configs/common/custom-portal/ and place the compiled <ext-module>.jar (renamed without the version) into this directory.
    2. Create the deployExtOverride.sh script in the liferay/configs/common/scripts/pre-startup/ directory and deploy it.
  • In the future, ext modules are expected to be deployable without the need for a custom script (LPD-19756)

deployExtOverride.sh

#!/usr/bin/env bash

# (1) Remove old ext module placement
rm -f /opt/liferay/osgi/marketplace/override/<ext-module>.jar

# (2) Replace the module mv /opt/liferay/osgi/portal/<ext-module>.jar /opt/liferay/osgi/portal/<ext-module>.jar.old mv /opt/liferay/custom-portal/<ext-module>.jar /opt/liferay/osgi/portal/<ext-module>.jar

# (3) Clean
rm -Rf /opt/liferay/custom-portal/

 

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base