我的SAP Hybris学习笔记
問題
Hybris 產(chǎn)品的開發(fā)性平臺(tái)怎么樣,是否可以快速響應(yīng)用戶需求?
回答
Hybris 后臺(tái)基于 Java Spring,因此開發(fā)性和擴(kuò)展性極佳。采用 Spring 的依賴注入和控制反轉(zhuǎn)思想,可以在不修改 Hybris 源代碼的基礎(chǔ)上,對(duì)其進(jìn)行增強(qiáng),以快速響應(yīng)用戶需求。
擁有 Java 和 Spring 開發(fā)基礎(chǔ)的 developer,經(jīng)過短時(shí)間培訓(xùn)即可上手 Hybris 的開發(fā)工作。
我之前總結(jié)的一些和 SAP Commerce Cloud 開發(fā)的鏈接:
-
SAP Hybris Enterprise Commerce的一些有用鏈接 - 保證持續(xù)更新
-
SAP Commerce(原Hybris)的一些架構(gòu)圖,持續(xù)更新
Installation guide
The install guide: https://help.hybris.com/6.5.0/hcd/8c46c266866910149666a0fe4caeee4e.html
具體就幾個(gè)命令:<recipe_name> 可以先用B2C_ACC
-
install.bat -r b2c_acc
-
install.bat -r b2c_acc initialize
-
install.bat -r b2c_acc start
use -r -s -d for issue trace. -
https://localhost:9002 admin console - devops
-
https://localhost:9002/backoffice - admin
-
https://localhost:9002/yacceleratorstorefront?site=electronics
Document
- Help doc - trails: https://help.hybris.com/6.5.0/hcd/a1ef894ac89545e79c470c726b487d13.html
Tips
The general rule is that if a ${HYBRIS_CONFIG_DIR} /localextensions.xml exists, it overrides the ${HYBRIS_BIN_DIR} /extensions.xml file. If you make any changes in the localextensions.xml, you need to rebuild Hybris Commerce:
- Navigate to the ${HYBRIS_BIN_DIR} /platform directory.
- Call ant clean all to build Hybris Commerce.
最近發(fā)現(xiàn)了另一個(gè)屬性,會(huì)一定程度提升啟動(dòng)速度,因?yàn)檫@樣只有master tenant會(huì)啟動(dòng),junit tenant不會(huì)啟動(dòng)。
“installed.tenants=”
wiki還提了幾個(gè)方法,但是嘗試后都不是很明顯
in case license is invalid:
- ant clean all
- ant initialize
Chengdu development
- bitbucket里的module(”chinaacceleratoraddons“) 和打包沒有直接關(guān)系,打包是每個(gè)module里的pom.xml控制的
具體打到哪個(gè)文件要針對(duì)每個(gè)extension定義一個(gè)pom的property:
module可以理解為只和package有關(guān)系,是用來打包放進(jìn)現(xiàn)在的hybris commerce suite的,沒有業(yè)務(wù)上的意義。當(dāng)然現(xiàn)在acc-2主要是一些可能會(huì)進(jìn)其他global team的recipe的extension, chinaacceleratoraddons主要是一些china的定制extension。
-
ext-accelerator 是core accelerator就是平臺(tái)的acc team用的,里面確實(shí)有一些china開頭的extension,我們叫老cnacc,是我們接手以前上海team做的一個(gè)老版的中國acc,現(xiàn)在已經(jīng)deprecate掉了。所以ext-accelerator我們team沒有在用了
-
hmc已經(jīng)deprecate掉了
-
jalo實(shí)際上現(xiàn)在還在使用,包括addon/extension扔使用例如“…\hybris\bin\platform\ext\core\resources\core-items.xml"去generate,在extension里會(huì)生成jalo文件夾,包含一些相關(guān)的manager之類的框架需要的類。但是一般不會(huì)release在product里,因?yàn)榫幾g以后這些jalo類會(huì)重新生成
-
recipe對(duì)于customer是沒有很大意義的。因?yàn)槔锩姘芏啾热鏰plipay mock之類的僅用于demo和showcase用途的extension. customer安裝肯定會(huì)根據(jù)他們具體需要選擇extension和addon
Hybris的data model分為兩個(gè)部分:
- 對(duì)內(nèi)各種ItemModel
- 對(duì)外各種DTO
Accelerator
SAP Commerce Accelerator is delivered completely as source code. You can edit the source code directly, but your project would probably prefer some kind of project-specific package naming. With the modulegen functionality, you can quickly generate a complete set of Accelerator extensions. Use modulegen to generate copies of the Accelerator extensions, using your project’s naming conventions.
Accelerator完全通過源代碼的方式deliver給客戶,可以使用modulegen快速生成一套Accelerator extensions,然后在這些copied extensions上進(jìn)行二次開發(fā)。
官網(wǎng)地址
總結(jié)
以上是生活随笔為你收集整理的我的SAP Hybris学习笔记的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 2023中国清洁电器行业高峰论坛:共话新
- 下一篇: SAP Hybris - how to