Not able to create Liferay Plugin Project in Eclipse - eclipse

I am new to liferay and i am trying to create a new Liferay Plugin Project.
I did a right click on package explorer and clicked on 'New Liferay Plugin Project'.
After that i entered the Project and Display name then i selected the Liferay MVC as my portlet framework and i clicked finish.
As soon i click on finish, it shows "Error creating Liferay Plugin Project: Please see eclipse error log for the details".
After this i changed ivy.jar.url in build.properties file from "http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy- 2.3.0.jar"
to "=C:\Rahul13615\liferay\plugins.ivy\ivy-2.3.0.jar".
I did and still i am getting the same error.

Maybe it's not exact answer to your question, but for Liferay 6.2 development I recommend using Apache Maven 3 as build tool.
Download Maven separately https://maven.apache.org/ and install.
Then at command line run command (https://dev.liferay.com/develop/tutorials/-/knowledge_base/6-2/creating-liferay-maven-plugins-from-the-command-lin)
mvn archetype:generate -DarchetypeCatalog=https://repository.liferay.com/nexus/content/groups/liferay-ce
and choose desired plugin through wizard.
After that import that project as an Maven project to Eclipse IDE.
As you mentioned that you are new to Liferay development I recommend offical Liferay documentation but instead of Liferay MVC I recommend Spring MVC Portlet due to bigger community and documentation. Resources related to Spring development in Liferay couldn't be found at official Liferay documentation so it's better to Google for blog articles etc. I develop at Liferay 6.2, Spring, Spring Webflow, Spring MVC, Thymeleaf, Maven stack and I have few articles related to problems which I came across at my blog http://lukasgrygar.com

Office Network not allowed(Blocking) to create new liferay workspace Project
We are facing some issues while trying to create new workspace in Liferay, When we are in Office network it fails. It's not accepting to auto download eclipse liferay projects's plugins. These repository sites are giving errors on eclipse connection time out.
Note: when we are in Citrix VM or open networks it works perfectly. Browser able to reach, If you hit below mentioned URL in browser.. But Its failing to reach at Eclipse level. https://cdn.lfrs.sl/repository.liferay.com/nexus/content/groups/public/com/liferay/com.liferay.gradle.plugins.workspace/1.5.0/com.liferay.gradle.plugins.workspace-1.5.0.pom
Eclipse Version:Eclipse neon
Liferay Version:7.1

Related

Problems to run Vaadin (maven) sample project on Tomcat

I believe this is specific question regarding Vaadin so if anyone who has an experience with Vaadin can help it will be great.
I am new with Vaadin framework. I worked more then 25 years as Oracle Developer and also wrote some Java programs.
My company is actually migrating Oracle Forms application to Java. As a user User interface layer we are using Vaadin and HTML5
I have installed Eclipse IDE for Java Developers Version: 2021-03 (4.19.0) on my Oracle Vbox virtual machine ( Ubuntu 18.04.3 LTS)
Also I have added tomcat 8 server to my Eclipse workspace.
Actually I am trying to create my first project based on this document https://vaadin.com/docs/v7/framework/getting-started/getting-started-first-project but I am already facing some issues :)
I have selected Vaadin 7 project for a new project .
select Maven Archetype ==> Single module Application
window => specified Archetype parameters and clicked finished
After I have selected the project and Run As Maven Install and also compiled Vaadin themes.
Here are the issues I am having:
When I compare my project hierarchy with https://vaadin.com/docs/v8/framework/getting-started/getting-started-first-project/#figure.getting-started.first-project.exploring I don't see JavaScript resources. It's important because my first task will be adding JavasScript to my application.
When I am running the project as explained in the document:
"Starting your application is as easy as selecting myproject from the Project Explorer and then Run › Debug As › . Eclipse then opens the application in built-in web browser"
When I select run and Debug the Debug on Server option is not available ( only Java application , Maven Build etc)
So I have tried another option: right click on Tomcat Server => Add or remove and I got the message: there are no resources that can be added or removed from the server
Also tried : Properties -> Projects Facets and check Dynamic Web Module but this doesn't help either
When I am trying to run the project I am getting the message "The selection did not contain any resources that can run on a server"
fre
org.eclipse.wst.common.project.facet.core.xml
I have also created the new Vaadin 10+ project with a "Base Starter for Vaadin" added Tomcat 8.0 Server ( maybe I should use Tomcat 9) and
Getting the message "the selection cannot be run on any server" when trying to run the project.
Any help will be highly appreciated
Note that Vaadin 7 is no longer a publicly supported version. If you are starting a new project, you may want to start with the latest LTS version 14.
If you have a Spring Boot-based app (default), you can run it either with mvn spring-boot:run Maven goal or by right-clicking the Application.java file and running it.
This documentation page outlines the steps for importing and running a Vaadin app in Eclipse: https://vaadin.com/docs/v14/guide/start/eclipse

How to deploy a portlet to Liferay from Eclipse

I've made a portlet in Eclipse and now I'd like to deploy it to a running Liferay-6.1 instance and debug it. I guess this should be described in documentation, but I was only able to found how to create the portlet, but not how to deploy it.
Here is a screenshot which shows how-to deploy Liferay portlet directly from Eclipse
How to deploy a portlet in Eclipse (using Liferay IDE) is documented here. This assumes that you have installed Liferay IDE, then created a Liferay Server adapter, and then created a project using New Liferay Project wizard.
After completion of developing the portlet go to the browser open the localhost sign in and then-->Goto Add--->more-->expand the sample--->Select Add
You can deploy it by using command prompt. Go to location of your plugin portlet and execute the following command:
eg:
D:\Projects\plugin\portlets\test-portlet>ant deploy
Note: you need to configure ant home like this.
If you have a plugin project, but you need to deploy it onto your Liferay Server. Let’s do it now:
Select your new plugin project then right click the Liferay Server in the Servers tab;
Select Add and Remove….
Select your plugin project and click Add to deploy it to the server.
Click Finish.
You should see the project get deployed to Liferay Tomcat server; in the console you’ll see a message indicating your new portlet is available for use.

Tutorial for creating own portlet in liferay with eclipse

I want to create My Own Portlet With the Eclipse JUNO for Liferay. I have googled a lot but that's provide me only for using with netbeans so can anyone guide me or give me link of the tutorial for the creating portlet from scratch in eclipse.
I have tried with the following
ADD-> new Liferay Projects
And then its not showing in a liferay the portlet which i have created
I have successfully installed liferay in my windows7 as well as i have also integrated ready made books portlet but just having while creating simple hello world portlet of my own
very before i have even follow this link http://www.youtube.com/watch?v=-EbyIbMWrCI
but its showing my portlet in update manager option in admin account as a status is "UNKNOWN"
For creating a portlet at Eclipse please have a look at Liferay development in Eclipse .
For getting ready portlet visible on Liferay you could find instructions for example on this: How to deploy portlets to Liferay?
Here is the installation guide and getting started tutorial.

Is it possible to integrate Glassfish support into Liferay IDE yet?

I am looking for a bit of Liferay/Glassfish assistance here.
I am currently using a Liferay 6.0.6 portal running on Glassfish 3.0.1 and developing in Eclipse 3.7 (Indigo). I have downloaded the Liferay IDE for Eclipse as well.
The trouble I am having is in actually developing in Eclipse against a Glassfish server. I cannot create an actual Liferay project in Eclipse because the wizard requires me to specify a Liferay-Tomcat runtime environment.
Now I realize that this is the only server that is supported for the Liferay IDE as it is clearly documented in multiple places on the Liferay website and various forums around the web. However, I seem to recall one site (which, of course, I didn't bookmark :/ ) that gave instructions on a workaround for using Glassfish within the Liferay IDE. I believe it had something to do with creating the initial project as a Tomcat project, then going behind the scenes and changing some configuration files' Tomcat references to point to my Glassfish server.
I have set up my Liferay SDK environment correctly, including the build.username.properties file. I have this file pointing to my Glassfish server.
#
# Specify the paths to an unzipped Glassfish bundle.
#
project.dir=C:\\DEV\\myworkspace
app.server.type=glassfish
app.server.dir=${project.dir}\\..\\bundles\\liferay-portal-6.0.6\\glassfish-3.0.1
app.server.deploy.dir=${app.server.dir}\\autodeploy
app.server.lib.global.dir=${app.server.dir}\\domains\\domain1\\lib
app.server.portal.dir=${app.server.dir}\\domains\\domain1\\applications\\liferay-portal
However, everytime I try to do a deploy through Eclipse...
...this build.username.properties file gets overwritten with Tomcat settings from the runtime environment.
app.server.type = tomcat
app.server.dir = C:\\DEV\\bundles\\liferay-tomcat-6.0.6\\tomcat-6.0.29
app.server.deploy.dir = C:\\DEV\\bundles\\liferay-tomcat-6.0.6\\tomcat-6.0.29\\webapps
app.server.lib.global.dir = C:\\DEV\\bundles\\liferay-tomcat-6.0.6\\tomcat-6.0.29\\lib\\ext
app.server.portal.dir = C:\\DEV\\bundles\\liferay-tomcat-6.0.6\\tomcat-6.0.29\\webapps\\ROOT
Is there somewhere else that I need to make a change in order to get Eclipse to recognize my Glassfish server?
Any help or tips would be greatly appreciated.
It is not currently possible to use a Liferay+Glassfish bundle directly as a runtime or server adapter in Eclipse with the Liferay IDE plugins. As you pointed out the only runtime and server adapters for Liferay IDE are the tomcat bundles. However, you can still use Liferay IDE to develop with Glassfish by using the following receipe with version 6.0.6 and current version of Liferay IDE.
Download Liferay+tomcat bundle
Configure it as a Liferay runtime
Create the project pointing to Liferay runtime
Go to Window > Preferences > Liferay > Installed SDKs, switch "update build.properties" option to Never
Launch Glashfish externally using startup script
Modify the build.properties in your SDK to point to Glasshfish as runtime
For deployment use the SDK deploy action just as you showed and it should be deployed to glassfish.
This should work for now. In the future, we will be adding support for Glassfish server to our Server Manager plugin that can be using with Liferay IDE and Liferay 6.1 for remote deployment and development, so it will work just like a local tomcat instance except it will be remote Liferay running on glassfish or jboss, or whatever you like. But right now the Server manager plugin in 6.1 beta4 only supports Tomcat6/7 and Jboss7. We hope to add Glassfish very soon.

Portlet Development with Tomcat and Eclipse

I'm starting to learn some portlet development. I'm wondering if there are any good (preferably recent since many of the guides I saw date back a few years) Hello Portlet or beginners guides. I have eclipse set up but I'm not sure what plugins/libraries/etc I need to start developing portlets for a Tomcat server.
Any help would be appreciated!
Liferay Portal (open source portal) has a set of eclipse plugins called Liferay IDE. If you set it up and also setup a Liferay Plugin SDK (zip download), then use the New Liferay Project wizard after installing the Liferay IDE plugins you will have everything you need. You can see the Liferay IDE Getting Started guide for how to deploy your first portlet to Liferay.