Can anyone explain how to get a hybris project set up in Intellij Idea?
Asked Answered
G

5

10

I am following the trails on the wiki and I am able to get the Hybris project set up in Eclipse just fine. But because I am new to Intellij Idea and I am still trying to grasp the idea of "projects" instead of "workspaces", I am having a hard time translating the Eclipse setup steps into intellij idea steps. I have Hybris - how do I "open" it in Intellij Idea? (Apologies ahead of time for the noob question but appreciate any input someone can give me).

Grouch answered 5/11, 2014 at 22:12 Comment(0)
A
23

1.Open "Intellij"

2.Click on "Configure" drop down at below on right side

3.Select "Plugins" from drop down

4.Install "SAP Commerce Developers ToolSet" plugin.

5.Restart Intellij again. Click on "+New Project"

6.Select "Empty Project" and then click "Next"

7.Give "Project name" like. "vip" or anything which you want to give and then click on Finish.

8.Close the popup, which will come automatically.

9.Click File->New ->"Project from Existing Resource".

10.Select "bin" folder from your project setup.

11.In popup, Select radio button "import project from external model". And Select "hybris"

12.Click on "Next" two more times. Then it will show all the extensions which you have imported for your project

  1. Click on "Next" two more times. Now it open the "intellij" workspace.

  2. pop up will come and select "This window"

Your hybris is ready to use in Intellij

Approachable answered 7/3, 2021 at 10:22 Comment(1)
This procedure is only for IntelliJ 2020 and above version. For below versions, You can directly select Import project and follow from Step 9.Landre
A
18

Just install "Hybris Integration" plugin it will do everything automatically. You will be able to import Hybris projects just like maven or gradle based projects. That plugin provides Hybris integration into Intellij IDEA and another IDE based on it.

You can install it to your IDE directly from the repository by clicking on the "Browse Repositories" button in Settings/Plugins dialog.

A1 answered 23/6, 2015 at 21:50 Comment(7)
I'm not sure this answers the question, and link only answers are discouraged, since if the link changes the info is lost.Demogorgon
Still, this is interesting. You could also look to add change detection and rebuild on *-items.xml and *-beans.xml.Meridethmeridian
Is there an equivalent plugin for NetBeans?Spiral
@StuartSiegler You won't be able to achieve the same results manually. That plugin is already being developed more than 4 years and it exploits a lot of Ingellij API to make it work. The way Intellij set ups its projects by default is not really matching the way Hybris works, to make it worse Hybris has different classpathes in runtime and during build time and the plugin tries to match that as closely as possible by customizing Intellij API.A1
@a_horse_with_no_name I have not seen such plugin for Netbeans.A1
@Meridethmeridian It has been in progress for a while. We have a task for that.A1
This is not free anymore.Lloyd
B
9

First, your extension dependencies should be clear. Normally, the basic dependencies in every project are: your storefront extension depends on your facade extension depends on your core extension depends on platform and voucher and mediaconversion (and probably many more) . Finally, platform depends on config.

Start importing these extensions from top to down. Start with config and than go ahead with platform. After that, import the first extension that depends only on platform and so on. Choose Eclipse when asked for Import project from external model (from eclipse plugin in Intellij). After every import build the whole project in Intellij to prevent compile and jar dependencies errors.

I'm working with 29 Hybris extensions and 6 custom extensions in one project quite happily.

Barton answered 6/11, 2014 at 19:59 Comment(2)
ksokol I don't see there is any problem using Intellij for Hybris. Many developers in my company uses IntelliJ. Lani1234 , can you share more on what issues you are facing? it may be more of an IntelliJ understanding issues than hybris.Broil
How would you start importing? which one is the import project part? platform?extensions are the modules? what about config folder? when would it be imported?Sneakers
S
3

Hybris Integration Plugin provides impex highlighting and also have ability finding platform extensions successfully. If your custom hybris architecture related with hybris standards ( for example use custom folder inside bin directory etc.) then you can easily import your project according to extension xmls files, If not i suggest you to import your project as an eclipse project then "build" -> "make project" then try to added neccessary modules which gives a compilation error. Intellij & hybris integration works very well.

Sneakers answered 11/11, 2015 at 9:25 Comment(0)
V
0

Install plugin: SAP Commerce Developers Toolset

  1. Open File > Setting > Plugin
  2. Search the plugin by name > Install

Steps to import:

  1. Click on File > New > Project from existing sources...
  2. Navigate to bin folder of your hybris project. > click ok
  3. Choose Import Project from External Model > choose hybris
  4. Click on next to keep every setting as default.
  5. Change your JDK version (if any)
  6. Click on finish to import Hybris Project.

Referencing to this video: https://www.youtube.com/watch?v=TT0Bv1USjWk

Venge answered 25/11, 2022 at 12:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.