Code Monkey home page Code Monkey logo

liferay-ide's Introduction

Liferay IDE

Liferay IDE is a collection of Eclipse plugins created by Liferay, Inc. to support developing plugins, e.g. portlets, hooks, themes, etc, for the Liferay Portal platform.

To get started, check out the project's community homepage at http://www.liferay.com/community/liferay-projects/liferay-ide

To install the Liferay IDE plugins into your Eclipse install using either the stable or milestone updatesite:

Quick Start

To get up and running quickly, download a pre-built Liferay IDE release and install it into your Eclipse install. Follow the Installation Guide for instructions. Then use the Getting Started Tutorial for how to create and deploy a Liferay Project using Liferay IDE.

Building from source

If you would like to build from source, use this following command:

$ mvn clean verify -DskipTests

Once it finishes the locally built Eclipse updatesite will be located here:

build/com.liferay.ide-repository/target/liferay-ide-<version>-<timestamp>-updatesite.zip

You can install this using Help > Install New Software... > Add > Archive > Point to newly built zip file

Debug a fix? Send a pull request?

If you want to help submit a bug fix or just step through the code to see what we are doing wrong :) you are going to need to import the source and launch a test eclipse with your fix and then step through the code. Here is the process you can follow

  1. Download Eclipse for Committers package
  2. Run this eclipse with 2048M memory setting (set -Xmx2048m in eclipse.ini)
  3. Install the latest Liferay IDE CI build
  4. Use this updatesite url.
  5. Install all features
  6. Clone this repo
  7. Import all projects into Eclipse
  8. File > Import > Existing Maven projects...
  9. Select all
  10. Finish
  11. Close all projects that have .tests suffix (unless you want to submit some unit tests :)
  12. If everything compiles, make your changes, set your breakpoints and then launch a new Eclipse test workbench
  13. Go to Run > Debug Configurations...
  14. Right-click "Eclipse Application" and choose "New"
  15. Change name to "liferay ide test"
  16. Switch to "Argements" tab and add "-XX:MaxPermSize=256m" to "VM arguments"
  17. Click "Apply" and then click "Debug"
  18. When new Eclipse opens it will be the base Eclipse + your new IDE plugins running from source, so test your change and send a pull request :)!
  19. Once your bugfix (or feature :) is ready, build it (read the section above on how to build it) and then try it out in a brand new Eclipse install
  20. Send a pull request! https://github.com/gamerson/liferay-ide/pulls

Bug Tracker

Have a bug? Please file an issue at Liferay's JIRA and use the IDE project.

Blog

Read detailed announcements, discussions, and more on Liferay IDE's Blog Stream.

Forum

Have questions? Ask them on our own category for Liferay IDE on the forums

License

This library, Liferay IDE, is free software ("Licensed Software"); you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; including but not limited to, the implied warranty of MERCHANTABILITY, NONINFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

liferay-ide's People

Contributors

andywu2015 avatar angelozerr avatar camork avatar chrberndt avatar christopherbryanboyd avatar codyhoag avatar dl-ethansun avatar drewbrokke avatar ericmin avatar gamerson avatar joyeluo avatar jrao avatar kameshsampath avatar lovettli avatar lyttinen avatar oyangbingxi avatar rui123wang avatar sammonsjl avatar seiphon avatar simonjhy avatar sunnyshiwei avatar vickywang avatar wangyq578 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

liferay-ide's Issues

Can't create new module

Hello again

on fedora linux with latest plugin installed from official links I cannot create anymore a new Module...

No error on UI

IntelliJ IDEA 2018.3.3 (Ultimate Edition)
Build #IU-183.5153.38, built on January 9, 2019
Licensed to simone celia
Subscription is active until February 13, 2019
JRE: 1.8.0_152-release-1343-b26 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.19.13-200.fc28.x86_64

can not change -Duser.timezone=GMT

1, install LiferayWorkspacewithDevStudio-202212271250-windows-installer.exe to c:/liferay7
2, open liferay developer studio ,and create a server [Liferay Community Edition Portal 7.4.3.58 CE GA58 at localhost]
3, double click [Liferay Community Edition Portal 7.4.3.58 CE GA58 at localhost], modify vm arguments: -Duser.timezone=JST ,save
4, start liferay server , log time is still GMT.

service builder build silent failure

If I have some error in my service.xml and I try to run Build Services command nothing happens ( no class is created and no error log is presented)

Only running from liferay > maven menu liferay:build-service goal I have a clear log about problems in service.xml.

Environment:

  • eclipse Luna
  • liferay IDE 2.2.2.201501300730-ga3
  • liferay sdk 6.2.2

Error installing IDE

Everytime i try to install plugin from eclipse i get this error:
"An error occurred while collecting items to be installed
No repository found containing: osgi.bundle,org.yaml.snakeyaml,1.33.0"

Eclipse IDE hangs with liferay-ide

Hi,

see attached video to see the issue.

Eclipse is not responding at all.

Plateform : Win7 + Eclipse 2021-06 + liferay-ide ( on Oracle JDK 8, 11 or eclipse packaged jre)

2021-09-23_08-52-07.mp4

No response after 8h of work...don't known what to do except killing eclipse process.

Restarting eclipse is ok but the problem comes back after a few minutes...

How to Override user.timezone=GMT

Using IDE 3.0.1 GA2 I am unable to set user.timezone to anything other GMT.
It appears to be set in the launch configuration but if changed will immediately revert to GMT.
Any attempt to override in the server configuration screen are ignored.

Liferay IDE installation error in windows

I am trying to install Liferay IDE on my windows machine but i am getting error like the one below. and i am unable to create a workpace on the IDE after selecting gradle in the dropdown i am not able to see anything in the drop down.
image (1)

[3.9.8] Error installation for blade cli either using JDK 11 from OpenJDK or even from Using sdkman 11.0.21.fx-zulu, cause can't create new liferay workspace

Hello, I got blade error when installing the IDE, the version that I use is 3.9.8, and I don't know what is the cause, I tried to change java version using FX using sdkman.io, resulting the same.

image

Using Zulu and OpenJDK.net 11

Problem running post-install step. Installation may not complete correctly
 Error running /home/ben/.sdkman/candidates/java/11.0.21.fx-zulu/bin/java  -jar "/home/ben/LiferayWorkspacewithDevStudio/biz.aQute.jpm.run.jar" install -fl "/home/ben/LiferayWorkspacewithDevStudio/blade.jar": Error
  0. [Source.zerror] Failed java.util.zip.ZipException: Invalid CEN header (invalid extra data field size for tag: 0xbdbf at 27356)

It's resulting same if I'm using java 11 openJDK from Ubuntu Repository. I'm at Ubuntu 22.04 LTS with GNOME and GTK3 (if it's matter)

$ cat /etc/os-release 
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

Using Zulu

$ java --version
openjdk 11.0.21 2023-10-17 LTS
OpenJDK Runtime Environment Zulu11.68+17-CA (build 11.0.21+9-LTS)
OpenJDK 64-Bit Server VM Zulu11.68+17-CA (build 11.0.21+9-LTS, mixed mode)

Using Ubuntu OpenJDK.net

$ java --version
openjdk 11.0.20.1 2023-08-24
OpenJDK Runtime Environment (build 11.0.20.1+1-post-Ubuntu-0ubuntu122.04)
OpenJDK 64-Bit Server VM (build 11.0.20.1+1-post-Ubuntu-0ubuntu122.04, mixed mode, sharing)

This error lead to can't create a new Liferay workspace, that cause me can't create a new module.
image

com.liferay.ide.project.core.modules.BladeCLIException: 
	at com.liferay.ide.project.core.modules.BladeCLI._execute(BladeCLI.java:216)
	at com.liferay.ide.project.core.modules.BladeCLI.executeWithLatestBlade(BladeCLI.java:59)
	at com.liferay.ide.maven.core.LiferayMavenWorkspaceProjectProvider.createNewProject(LiferayMavenWorkspaceProjectProvider.java:76)
	at com.liferay.ide.maven.core.LiferayMavenWorkspaceProjectProvider.createNewProject(LiferayMavenWorkspaceProjectProvider.java:1)
	at com.liferay.ide.project.core.workspace.NewLiferayWorkspaceOpMethods.execute(NewLiferayWorkspaceOpMethods.java:55)
	at com.liferay.ide.project.core.workspace.NewLiferayWorkspaceOp$Impl.execute(Unknown Source)
	at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:398)
	at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:362)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

Failed to init product version list.

com.liferay.ide.project.core.modules.BladeCLIException: 
	at com.liferay.ide.project.core.modules.BladeCLI._execute(BladeCLI.java:216)
	at com.liferay.ide.project.core.modules.BladeCLI.getWorkspaceProducts(BladeCLI.java:146)
	at com.liferay.ide.project.core.workspace.ProductVersionPossibleValuesService$1.run(ProductVersionPossibleValuesService.java:83)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

I'm just suspecting that the blade.jar header building is wrong, resulting this error, but as I'm new into liferay, I can't debug much. I hope there are some pointer regarding fixing this problem. Thank you

Liferay portal-7.4-ga1 not supported

Error : Specified Liferay Version is invalid. Must be in range [7.0.0, 7.4.0]

IDE Version : Version: 3.9.2.202103181004-ga3

All below 7.4 portal versions seems to work.

Please Help

Screen Shot 2021-05-01 at 17 40 03

problem creating service builder

I cannot create a Liferay Service Builder, because in creating form is impossible to select any liferay plugin available in workspace, so the creation cannot be ended.

As workaround I created manually a service.xml file in WEB-INF folder of plugin.
After manually creation service.xml is correctly identified by service builder plugin.

Environment

  • eclipse Luna
  • liferay IDE 2.2.2.201501300730-ga3
  • liferary sdk 6.2.2

Problems with version Sapphire library

When I install your liferay ide plugin in my eclipse, it works well with sapphire version 0.5.3 but when install Oracle Enterprise Pack for Eclipse, sapphire version was updated to 7.0.3 and it breaks my plugin liferay ide and some xml configuration files are not shown anymore and I can not create new liferay project ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.