Adding a Liferay Bundle to Liferay Workspace

Liferay Workspaces can generate and hold a Liferay Server. This lets you build/test your workspace’s plugins against a running Liferay instance. Follow the instructions below to get started.

  1. Open your workspace’s root gradle.properties file.

  2. Set the liferay.workspace.bundle.url property to the bundle’s download URL you want to generate and install. For example,

    liferay.workspace.bundle.url=https://releases-cdn.liferay.com/portal/7.2.0-ga1/liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761.7z
    

    For DXP subscribers, it would look like this:

    liferay.workspace.bundle.url=https://api.liferay.com/downloads/portal/7.2.10/liferay-dxp-tomcat-7.2.10-ga1-20190531140450482.7z
    

    DXP subscribers must also set the liferay.workspace.bundle.token.download property to true to allow your workspace to access Liferay’s API site.

  3. Navigate to your workspace’s root folder and run

    blade server init
    
  4. Verify your bundle was downloaded. The bundle is generated in the bundles folder by default. You can change this by setting the gradle.properties file’s liferay.workspace.home.dir property to a different folder.

You can also produce a distributable Liferay bundle (Zip or Tar) from within a workspace. To do this, navigate to your workspace’s root folder and run the following command:

./gradlew distBundle[Zip|Tar]

Your distribution file is available from the workspace’s /build folder.

You’re all set to develop projects for a nested Liferay DXP bundle.

« Setting Proxy Requirements for Liferay WorkspaceSetting Environment Configurations for Liferay Workspace »
Was this article helpful?
0 out of 0 found this helpful