我正在尝试安装Hybris 6.6。尝试执行时出现以下错误:
install.bat -r b2c_acc_plus
我得到的错误是:
c:\Practice\installer>install.bat -r b2c_acc_plus
Java version: 1.8.0_152
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_3c3xvl01rtn1sabh2yuajgw9g.run(C:\Practice\installer\recipes\b2c_acc_plus\build.gradle:124)
:recipes/b2c_acc_plus:setup
Executing: createConfig...
Buildfile: build.xml does not exist!
Build failed
Could not execute createConfig ant target
:recipes/b2c_acc_plus:setup FAILED
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Practice\installer\recipes\b2c_acc_plus\build.gradle' line: 128
* What went wrong:
Execution failed for task ':recipes/b2c_acc_plus:setup'.
> java.io.FileNotFoundException: C:\Practice\hybris\config\local.properties (The system cannot find the path specified)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1.798 secs
Problem with java process - finished with non-zero exit code (1)
我试图找到必须放置build.xml的位置,但也找不到相同的位置。
尝试使用 b2c_acc 配方进行安装时,安装程序将引发相同的错误。似乎没有任何作用。任何帮助表示赞赏。
编辑:
解决方案已添加。感谢所有提供帮助的人。 :)
最佳答案
我发现还有另一种方法可以完成它。
您可以转到%hybris_home_dir%/hybris/bin/platform
跑ant clean all
在那里,其次ant modulegen
。
关于gradle - Hybris安装中缺少build.xml错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48518162/