天天看點

我的SAP Hybris學習筆記

問題

Hybris 産品的開發性平台怎麼樣,是否可以快速響應使用者需求?

回答

Hybris 背景基于 Java Spring,是以開發性和擴充性極佳。采用 Spring 的依賴注入和控制反轉思想,可以在不修改 Hybris 源代碼的基礎上,對其進行增強,以快速響應使用者需求。

擁有 Java 和 Spring 開發基礎的 developer,經過短時間教育訓練即可上手 Hybris 的開發工作。

我之前總結的一些和 SAP Commerce Cloud 開發的連結:

SAP Hybris Enterprise Commerce的一些有用連結 - 保證持續更新

SAP Commerce(原Hybris)的一些架構圖,持續更新

Installation guide

The install guide:

https://help.hybris.com/6.5.0/hcd/8c46c266866910149666a0fe4caeee4e.html

具體就幾個指令: 可以先用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.

最近發現了另一個屬性,會一定程度提升啟動速度,因為這樣隻有master tenant會啟動,junit tenant不會啟動。

“installed.tenants=”

wiki還提了幾個方法,但是嘗試後都不是很明顯

in case license is invalid:

ant clean all

ant initialize

Chengdu development

bitbucket裡的module(”chinaacceleratoraddons“) 和打包沒有直接關系,打包是每個module裡的pom.xml控制的

具體打到哪個檔案要針對每個extension定義一個pom的property:

module可以了解為隻和package有關系,是用來打包放進現在的hybris commerce suite的,沒有業務上的意義。當然現在acc-2主要是一些可能會進其他global team的recipe的extension, chinaacceleratoraddons主要是一些china的定制extension。

ext-accelerator 是core accelerator就是平台的acc team用的,裡面确實有一些china開頭的extension,我們叫老cnacc,是我們接手以前上海team做的一個老版的中國acc,現在已經deprecate掉了。是以ext-accelerator我們team沒有在用了

hmc已經deprecate掉了

jalo實際上現在還在使用,包括addon/extension扔使用例如“…\hybris\bin\platform\ext\core\resources\core-items.xml"去generate,在extension裡會生成jalo檔案夾,包含一些相關的manager之類的架構需要的類。但是一般不會release在product裡,因為編譯以後這些jalo類會重新生成

recipe對于customer是沒有很大意義的。因為裡面包含很多比如aplipay mock之類的僅用于demo和showcase用途的extension. customer安裝肯定會根據他們具體需要選擇extension和addon

Hybris的data model分為兩個部分:

對内各種ItemModel

對外各種DTO

Accelerator

我的SAP Hybris學習筆記