Managing Projects with Liferay Dev Studio

Liferay Dev Studio provides the ability to manage Liferay projects from a GUI. Before you begin learning about managing your projects from Liferay Dev Studio, you should make sure a Liferay server is configured in your Eclipse workspace so you can deploy and run your projects. You can learn how to create a Liferay bundle and link it to your Liferay workspace in the Creating a Liferay Workspace with Liferay Dev Studio tutorial.

Once you’ve created projects, you can deploy them using Dev Studio. First, make sure your Liferay server is started by clicking the Start Server button (Start Server). Then navigate to your project from the Project Explorer and drag-and-drop it onto the configured Liferay bundle in the Servers menu. If at any time you’d like to stop your Liferay server, click the Stop Server button (Stop Server). Awesome! You’ve deployed a project to your running Liferay instance!

For the deployed project, you can check if it has been deployed successfully by using the Gogo Shell. Right-click the started portal in your Server view and select Open Gogo Shell.

Figure 1: Select Open Gogo Shell to open a terminal window in Dev Studio using Gogo shell.

Figure 1: Select *Open Gogo Shell* to open a terminal window in Dev Studio using Gogo shell.

A Gogo shell terminal appears, allowing you to enter Gogo commands to inspect your Liferay instance and the projects deployed to it. Enter the lb command to view a list of deployed bundles. If the project status is active, then it deployed successfully.

Figure 2: You can check to see if your project deployed successfully to Liferay using the Gogo shell.

Figure 2: You can check to see if your project deployed successfully to Liferay using the Gogo shell.

Dev Studio’s Gogo shell usage requires Developer Mode to be enabled. Developer Mode is enabled in Liferay Workspace by default.

Since the Liferay Workspace perspective in Dev Studio is Gradle-based, you have some additional Gradle features you can take advantage of. The Gradle Tasks toolbar presents Gradle commands for your workspace that you can execute with a click of the mouse.

Figure 3: The Gradle Task toolbar offers Gradle tasks and their descriptions, which can be executed by double-clicking them.

Figure 3: The Gradle Task toolbar offers Gradle tasks and their descriptions, which can be executed by double-clicking them.

You can also access various Gradle build operations intended for Liferay module projects. Right-click your module project and select Liferay and then the build command you want to execute.

Figure 4: You can execute build operations by right-clicking the Gradle project in the Project Explorer.

Figure 4: You can execute build operations by right-clicking the Gradle project in the Project Explorer.

To learn more about Gradle development in Liferay Dev Studio, see the Using Gradle in Liferay Dev Studio tutorial.

Excellent! You’ve learned how to manage your Gradle-based Liferay Workspace using Dev Studio.

« Deploying Projects with Liferay Dev StudioInstalling a Server in Liferay Dev Studio »
¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0