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).
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
Click on "Next" two more times. Now it open the "intellij" workspace.
pop up will come and select "This window"
Your hybris is ready to use in Intellij
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.
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.
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.
Install plugin: SAP Commerce Developers Toolset
- Open File > Setting > Plugin
- Search the plugin by name > Install
Steps to import:
- Click on File > New > Project from existing sources...
- Navigate to bin folder of your hybris project. > click ok
- Choose Import Project from External Model > choose hybris
- Click on next to keep every setting as default.
- Change your JDK version (if any)
- Click on finish to import Hybris Project.
Referencing to this video: https://www.youtube.com/watch?v=TT0Bv1USjWk
© 2022 - 2024 — McMap. All rights reserved.