Faceting a Plugin Project for Liferay IDE

When you drag your plugin project onto your Liferay server in Liferay IDE, is the plugin not deploying? Is there no “L” overlay image on your project’s icon in the Package Explorer? These are symptoms of an unfaceted plugin project. In order for a plugin project to work properly in Liferay IDE, it must have Dynamic Web, Java, and Liferay Plugin facets. Don’t worry, they’re easy to configure.

In this tutorial, you’ll learn how to facet your plugin project into a bonafide Liferay IDE project in no time!

Faceting a Liferay Plugin Project

To facet your plugin project properly, follow these steps:

  1. In the Package Explorer, right click your project’s name → PropertiesProject Facets. If the Project Facets window reports that the project is not configured to use project facets, click the link Convert to faceted form…

    Figure 1: Its easy to enable your project to use facets in Liferay IDE.

    Figure 1: It's easy to enable your project to use facets in Liferay IDE.

  2. Select the Dynamic Web Module, Java, and JavaScript (required if your plugin project uses JavaScript) facets.

  3. Expand the Liferay Plugins facet type and select the plugin type matching your project’s plugin type.

    Figure 2: Make sure to select the plugin type matching your projects plugin type.

    Figure 2: Make sure to select the plugin type matching your project's plugin type.

  4. Click the OK button.

Your plugin project is now faceted for Liferay IDE!

Deploying Plugins

« Converting Eclipse Projects into Liferay IDE ProjectsVerifying Successful Project Import »
この記事は役に立ちましたか?
0人中0人がこの記事が役に立ったと言っています