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.
-
Open your workspace’s root
gradle.properties
file. -
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 totrue
to allow your workspace to access Liferay’s API site. -
Navigate to your workspace’s root folder and run
blade server init
-
Verify your bundle was downloaded. The bundle is generated in the
bundles
folder by default. You can change this by setting thegradle.properties
file’sliferay.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.