- SAP Hybris recipe 为 cx 的安装和初始化
- 使用 cx recipe 安装 Hybris Commerce
- SAP Hybris(Commerce)安装recipe包含的三
- Hybris Commerce 在eclipse中开发和DEBU
- SAP Hybris Commerce Cloud Accele
- 使用 jMeter 对 SAP Spartacus 进行并发性能
- SAP Hybris使用recipe进行安装时,是如何执行ant
- Eclipse 里一个 SAP Hybris Commerce
- 优化 recipe 达到快速启动 SAP Hybris Acce
- SAP Spartacus 项目开发时需要注意的一些常见错误
一个正在使用的系统:Hybris 文件夹下的子文件夹

一个刚刚下载的 Hybris:

Hybris 下面只有一个 bin 文件夹。
在一个干净的 d93Moon 试试 cx
./install.sh -r cx-for-spa
./install.sh -r cx-for-spa initialize
./install.sh -r cx-for-spa start
注意,我没有尝试 ant clean all 和 ant initialize
第一步:

这一步先拷贝 gradle

原来 role 文件夹也是自动创建的:

从这个 template 里拷贝 config 文件夹:

很快就有了这些文件夹:


提供了五步的提示:

第四步还是需要 ant


加了上面的参数后问题消失。
那我还是执行 setant env 和 ant clean all 吧。

我之前在运行状态中执行的 ant clean all?

这一步 ant clean all 执行完之后,下一步执行 recipe 第二个 initialize 操作。

ant clean all,编译生成了不少 classes 文件:

Accelerator 的主题:
C:\Code\D93Moon\hybris\bin\custom\yb2bacceleratorstorefront\web\webroot_ui\responsive\theme-lambda\css\style.css
一个一个 extension 进行 build:

所以 ant clean all 能 build 所有的 extension?
ant clean all:创建配置文件和目录结构。创建一个新的 build.
Running ant clean all on a new instance of SAP Commerce creates any configuration files and other essential directories. This is a necessary step in the installation process, and must be done once before you proceed with the configuration.
If a build already exists, it deletes and recreates it. Repeat this command any time you wish to create a new build in place of an old one.
第一次运行时,需要选择一个 configuration template:

回车的话,会直接选择 develop 模板。
ant clean all 之后才能进行 initialize
初始化您的SAP Commerce 实例以生成数据库模式
和类型系统
,并导入任何必要的系统数据。在初始化之前,系统还没有完全发挥作用。
下一步执行 install.bat -r cx initialize
使用 base-template 里的 Accelerator 模板文件:

从 install.bat -r cx initialize 的执行输出来看,做的事情似乎和 ant clean all 差不多。


开始初始化类型系统了:type system
##########
[java] INFO [main] [Initialization] Initialize system
[java] INFO [main] [Initialization]并并###并并并###### ###############
[java] INFO [main] [Initialization] PLease wait. This step can take some minutes to complete
[java] INFO [main] [Initialization] If you do not receive any feedback on this pagethis time, consult the applicationserver logs for possibLe errors.
[java] INFO [main] [Initialization] Dropping old and creating new empty system ...[java] INFO [main] [Initialization] ###starting type system initialization
[java] INFO [main] [Initialization] Creating schema and type system ...
[java] INFO [main] [HybrisschemaGenerator] switching Locale to RO0
[java] INFO [main] [HybrisschemaGenerator] Reading type system Information.
[java] INFO [main] [HybrisschemaGenerator] Read type system Information. Time taken393 s
[java] INFO [main] [HybrisschemaGenerator] Preparing Db model.
---->। 75% EXECUTING [32m 18s]
:recipes:cx:initialize
这里已经和 Java class 无关了。
开始导入 impex 数据:


最后我想调试,执行 hybrisserver.bat debug:

花了19分钟启动完毕。

更多Jerry的原创文章,尽在:"汪子熙":

网友评论