سؤال

I'm trying to complete The Official Documentation for Hooks in Liferay. About halfway down that page, there is a note.

Note: If the Liferay server prints the following message to your console,
the Marketplace Portlet and Portal Compatibility Hook must not already be
deployed on your server.

"Plugin example-hook requires marketplace-portlet, portal-compat-hook"

I do get this message, so I attempt to follow the instructions:

You can fork and clone Liferay’s liferay-plugins project from GitHub, checkout the   
respective branch and/or tag, and deploy each plugin. You can install the Plugins
SDK in Liferay IDE and import each plugin and deploy them. Here is information on
each of the plugins:

Marketplace Portlet (marketplace-portlet) - is available at liferay-
plugins/portlets/marketplace-portlet.

Portal Compatibility Hook (portal-compat-hook) - is available at liferay-
plugins/hooks/portal-compat-hook.

This is as much information as I can find about setting up the marketplace-portlet.

So I clone, and add the whole repo as an existing Eclipse project, not a liferay project. I check the checkbox for look for nested projects, find and add the marketplace portlet and hit finished. Then I assume to fix the build path by changing plugin-master to portal-6.2.x

As you can see, this solves more than half of the missing .jars, but the ones that are still missing claim the build path is the same, so they are missing from the repo, or need to be built. I have no idea which.

So, how do I deploy the marketplace-portlet?

build issues

هل كانت مفيدة؟

المحلول

As requested, combining our comments into an answer:

"Have you tried installing fresh again?" ;)

To make it worth a real answer: The typical bundle installation comes fully runnable (the installation instructions are: unzip, start tomcat) and contains everything you need - especially in a development environment.

If you use Liferay IDE or the EE equivalent Developer Studio (both based on eclipse), they even know how to unzip the server themselves (a necessity if you're developing/redeploying ext plugins).

Glad to be able to help.

نصائح أخرى

This problem happened repeatedly. Something about a bad deploy could cause Liferay to remove its own Marketplace portlet*.

Rather than re-install each time, I grabbed the Marketplace Portlet.war from Liferay's Get Marketplace Portlet page and would deploy it using the Liferay Control Panel.

*: I don't have an exact steps to reproduce, sorry.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top