优化 recipe 达到快速启动 SAP Hybris Accelerator Storefront 的方法
2023-09-14 09:03:00 时间
build.gradle 文件只需维护如下 extensions 即可:
apply plugin: 'installer-platform-plugin'
apply plugin: 'installer-addon2-plugin'
def platform = platform {
localProperties {
'# place your custom properties into this file instead of modifying the project.properties'
'# all properties in this file have higher priority and will overwrite the platform/project.properties settings.'
property '#mykey', '#myvalue'
property '#hac.webroot', '/hac'
property 'recaptcha.publickey', ''
property 'recaptcha.privatekey', ''
property 'googleApiKey', ''
property 'website.electronics.http', 'http://electronics.local:9001/yacceleratorstorefront'
property 'website.electronics.https', 'https://electronics.local:9002/yacceleratorstorefront'
property 'backoffice.solr.search.index.autoinit', 'false'
}
afterSetup {
ensureAdminPasswordSet()
}
extensions {
// spartacus extensions
extName 'spartacussampledata'
extName 'electronicsstore'
extName 'yacceleratorbackoffice'
extName 'yacceleratorcore'
extName 'yacceleratorfacades'
extName 'yacceleratorinitialdata'
extName 'yacceleratorstorefront'
extName 'commerceservicesbackoffice'
extName 'commercewebservices'
extName 'commercewebservicescommons'
// promotion-engine
extName 'promotionenginebackoffice'
extName 'promotionenginesamplesaddon'
extName 'promotionengineservices'
extName 'solrserver'
extName 'cms2'
extName 'cmsbackoffice'
extName 'cmsocc'
extName 'cmswebservices'
// yforms
extName 'orbeonweb'
extName 'xyformsbackoffice'
extName 'xyformsfacades'
extName 'xyformssamples'
extName 'xyformsservices'
extName 'xyformsstorefrontcommons'
extName 'xyformsweb'
}
}
task createStoreFrontExt {
doLast {
def prePlatform = platformFactory.createPlatform()
prePlatform.createConfigDirIfNotExist()
prePlatform.resetConfig()
prePlatform.createExtension {
templateName 'yacceleratorstorefront'
extensionName 'yb2bacceleratorstorefront'
packageName 'de.hybris.platform.yb2bacceleratorstorefront'
}
def b2bPropFile = "${suiteHome}/hybris/bin/custom/yb2bacceleratorstorefront/project.properties"
ant.replace(file: b2bPropFile, token: "storefrontContextRoot", value: "b2bstorefrontContextRoot");
}
}
task setup(dependsOn: createStoreFrontExt) {
doLast {
platform.setup()
}
}
task buildSystem(dependsOn: setup) {
doLast {
platform.build()
}
}
task initialize(dependsOn: buildSystem) {
doLast {
platform.initialize()
}
}
task start {
doLast {
platform.start()
}
}
task startInBackground {
doLast {
platform.startInBackground()
}
}
task stopInBackground {
doLast {
platform.stopInBackground()
}
}
最后加载了 84 个 extensions:
如何解决 license 问题:
访问 SAP license 网站:
点击 add license key 按钮:
hardware key 选择:Y4989890650
生成了一个 CPS.txt 文件:
使用命令行 install.bat -install CPS.txt 安装 license:
只花了三分多钟就成功启动了:
重启后,license 更新成功:
更多Jerry的原创文章,尽在:“汪子熙”:
相关文章
- SAP UI5 BaseObject.extend 方法的单步调试
- 浅谈 SAP ABAP 系统里的 ALV 输出方式实现
- SAP UI5 sap.ui.export.Spreadsheet API 介绍
- SAP UI5 sap.ui.Device.media.RANGESETS.SAP_STANDARD_EXTENDED 介绍
- SAP MM模块-主要的采购业务
- SAP 外协采购-Subcontracting
- SAP UI5 应用 FlexBox 控件 growFactor 的使用方法
- SAP UI5 应用 manifest.json 文件里 Routes 数组元素的相对顺序,不可忽视的试读版
- SAP UI5 sap.m.Table Manual Pop-In Mode 概述
- 安装SAP,Linux获台前瞻未来(linux安装sap)
- Oracle购买SAP: 开启新数据时代(oracle收购sap)
- SAP中数字计算时溢出捕获详解编程语言
- SAP 金额在表中的存储及货币转换因子详解编程语言
- SAP_Web_Service开发配置详解编程语言
- SAP 录屏BDC使用—实例详解编程语言
- SAP播放本地视频及音频(仅限于window MediaPlayer可播放文件)详解编程语言
- SAP错误处理总结详解编程语言
- sap数据归档详解编程语言
- SAP 批次管理(Batch management)配置介绍详解编程语言
- sap abap 对字符串的操作详解编程语言
- Working with EXIT, STOP, CONTINUE and RETURN in SAP ABAP详解编程语言
- SAP 已经Release(释放)的传输请求(TR)重新传输-SE03详解编程语言
- 转变Oracle SAP实施转变:新的商业革命(oraclesap实施)
- 对比SAP VS Oracle: 哪个更适合你?(sap与oracle)
- Oracle从SAP抽取数据的简单方法(oracle从sap抽数)
- 数据库解决方案如何使用SAP创建Redis数据库(sap怎么创建redis)
- Oracle与SAP金蝶谁更具竞争力(oracle sap金蝶)