优化 recipe 达到快速启动 SAP Hybris Accelerator Storefront 的方法

简介: 优化 recipe 达到快速启动 SAP Hybris Accelerator Storefront 的方法

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 更新成功:

相关文章
|
2月前
|
人工智能 搜索推荐 Serverless
使用金庸的著作,来测试阿里通义千问最新开放的长文档处理功能
使用金庸的著作,来测试阿里通义千问最新开放的长文档处理功能
使用金庸的著作,来测试阿里通义千问最新开放的长文档处理功能
|
2月前
|
JSON 前端开发 测试技术
SAP UI5 sap.ui.core.util.MockServer.simulate 方法介绍
SAP UI5 sap.ui.core.util.MockServer.simulate 方法介绍
|
2月前
|
搜索推荐
SAP UI5 SmartTable.prototype._onMetadataInitialised 方法的深入介绍
SAP UI5 SmartTable.prototype._onMetadataInitialised 方法的深入介绍
|
2月前
|
JSON 前端开发 开发者
sap.ui.model.Model.checkUpdate 方法介绍
sap.ui.model.Model.checkUpdate 方法介绍
|
2月前
|
存储 JSON 供应链
sap.ui.model.Model.refresh 方法介绍
sap.ui.model.Model.refresh 方法介绍
什么是 SAP Hybris 中的 CMSLinkComponent
什么是 SAP Hybris 中的 CMSLinkComponent
|
9月前
|
存储 UED
SAP Hybris Revenue Cloud 和 SAP Subscription Billing 这两个产品的关联
SAP Hybris Revenue Cloud 和 SAP Subscription Billing 这两个产品的关联
|
9月前
|
搜索推荐 JavaScript 前端开发
Spartacus 开源项目给 SAP Commerce Cloud Storefront 共享的一些有用的特性介绍
Spartacus 开源项目给 SAP Commerce Cloud Storefront 共享的一些有用的特性介绍
|
2月前
|
存储 供应链 安全
SAP S4HANA 数据归档的实施方法
SAP S4HANA 数据归档的实施方法
|
8月前
|
开发者
SAP UI5 控件双向数据绑定后显示数据出问题,可以调试这个方法
SAP UI5 控件双向数据绑定后显示数据出问题,可以调试这个方法