Depending on a Customized Distribution of Liferay DXP

To regenerate the target platform’s capabilities (distro JAR) based on the current workspace’s Liferay DXP instance, follow the steps below:

  1. Start the Liferay DXP instance stored in your workspace. Make sure the platform you want to depend on is installed.

  2. Download the BND Remote Agent JAR file and copy it into the osgi/modules folder.

  3. From the root folder of your workspace, run the following command:

    bnd remote distro -o custom_distro.jar release.portal.distro 7.2.0
    

    Liferay DXP users must replace the release.portal.distro artifact name with release.dxp.distro and use the 7.2.10 version syntax.

    This connects to the newly deployed BND agent running in Liferay DXP and generates a new distro JAR named custom_distro.jar. All other capabilities inherit their functionality based on your Liferay DXP instance, so verify the workspace bundle is the version you plan to release in production.

  4. Navigate to your workspace’s root build.gradle file and add the following dependency:

    dependencies {
        targetPlatformDistro files('custom_distro.jar')
    }
    

Now your workspace is pointing to a custom distro JAR file instead of the default one provided. Run the resolve task to validate your modules against the new set of capabilities.

« Skipping the Resolving Process for a ModuleIncluding the Resolver in Your Gradle Build »
Was this article helpful?
0 out of 0 found this helpful