So, you make first a .war file let's say a portlet of name <YOUR PLUGIN>.war. You wanna have it running on a glassfish domain under Liferay portal.
Steps to success:
Navigate to Control Panel -> Plugins Installation on Liferay
Hit Install new portlets
Hit Configuration
Fill in to Dep...