我今天试图安装SAP Commerce Cloud 2011来配合SAP Spartacus 3.0使用时,我遇到如下错误消息:
Caused by: de.hybris.bootstrap.config.BootstrapConfigException: Extension ‘spartacussampledata’ doesn’t specify a path and no scanned extension was matching the name. Please check file C:\Code\H2011\hybris\config\localextensions.xml.
在Github上看到关于这个错误消息的讨论:
https://github.com/SAP/spartacus/issues/10133
in that page, https://sap.github.io/spartacus-docs/pre-release-information/#adding-the-new-sample-data the recipe or your local extensions file should point to spartacussampledata instead of *addon renaming the folder also worked but it should be other way around you can also remove the spartacussampledataaddon entry in your addons section, as the Spartacus sample data is now just an extension, not an addon Our 3.0 docs will be updated accordingly, thanks for the feedback.
解决方案:
使用这个链接里最新的针对Spartacus 3.0使用的sampledata extension(而不是之前的sampledataaddon),问题即可解决:
如上图所示,下面的命令行顺利执行完毕。
./install.sh -r cx-for-spa