我按照以下链接安装B2B& B2C并行存储
https://wiki.hybris.com/pages/viewpage.action?spaceKey=accdoc&title=Installing+B2C+and+B2B+Accelerators+in+Parallel
之后,按照这些步骤,我得到了OOB电子产品和powertools商店。
现在,我将使用modulegen创建自己的自定义B2C商店。
但是,我收到的错误是:
Trying to override old definition of task lesscss
Trying to override old definition of task movelibs
Trying to override old definition of task generatevariables
modulegen:
[input]
[input] Please choose a template for generation.
[input] Press [Enter] to use the default value (acceleratorordermanagement, [accelerator], chinaaccelerator, commercewebservices, b2baccelerator)
[input]
[input] Please choose the name of your module extension. It has to start with a letter followed by letters and/or numbers.
[input] Press [Enter] to use the default value [training]
merchandise
[input]
[input] Please choose the base package name of your extensions. It has to fulfill java package name convention. Each extension in the module will add its name to this package.
[input] Press [Enter] to use the default value [org.training]
de.hybris.merchandise
[echo] Using extension template source: C:\hybris-commerce-suites-5.7.0.3\hybris\bin\ext-template\yacceleratorcore
[echo] Using extension template source: C:\hybris-commerce-suites-5.7.0.3\hybris\bin\ext-template\yacceleratorfacades
[echo] Using extension template source: C:\hybris-commerce-suites-5.7.0.3\hybris\bin\custom\yb2bacceleratorstorefront
[echo] Using extension template source: C:\hybris-commerce-suites-5.7.0.3\hybris\bin\ext-template\yacceleratortest
[echo] Using extension template source: C:\hybris-commerce-suites-5.7.0.3\hybris\bin\ext-template\yacceleratorstorefront
[echo] Using extension template source: C:\hybris-commerce-suites-5.7.0.3\hybris\bin\ext-template\yacceleratorfulfilmentprocess
[echo] Using extension template source: C:\hybris-commerce-suites-5.7.0.3\hybris\bin\ext-template\yacceleratorinitialdata
[echo] Using extension template source: C:\hybris-commerce-suites-5.7.0.3\hybris\bin\ext-template\yacceleratorcockpits
[echo] Processing extension yacceleratorcore
[mkdir] Created dir: C:\hybris-commerce-suites-5.7.0.3\hybris\temp\hybris\extgen\yacceleratorcore
[echo] Copying template files from C:\hybris-commerce-suites-5.7.0.3\hybris\bin\ext-template\yacceleratorcore to C:\hybris-commerce-suites-5.7.0.3\hybris\temp\hybris/extgen/yacceleratorcore
[copy] Copying 474 files to C:\hybris-commerce-suites-5.7.0.3\hybris\temp\hybris\extgen\yacceleratorcore
[echo] Replacing tokens in template files: C:\hybris-commerce-suites-5.7.0.3\hybris\temp\hybris/extgen
[replace] Replaced 428 occurrences in 100 files.
[copy] Copying 474 files to C:\hybris-commerce-suites-5.7.0.3\hybris\temp\hybris\extgen_final\yacceleratorcore
[echo] Processing extension yacceleratorfacades
[mkdir] Created dir: C:\hybris-commerce-suites-5.7.0.3\hybris\temp\hybris\extgen\yacceleratorfacades
[echo] Copying template files from C:\hybris-commerce-suites-5.7.0.3\hybris\bin\ext-template\yacceleratorfacades to C:\hybris-commerce-suites-5.7.0.3\hybris\temp\hybris/extgen/yacceleratorfacades
[copy] Copying 70 files to C:\hybris-commerce-suites-5.7.0.3\hybris\temp\hybris\extgen\yacceleratorfacades
[echo] Replacing tokens in template files: C:\hybris-commerce-suites-5.7.0.3\hybris\temp\hybris/extgen
[replace] Replaced 117 occurrences in 40 files.
[copy] Copying 70 files to C:\hybris-commerce-suites-5.7.0.3\hybris\temp\hybris\extgen_final\yacceleratorfacades
[echo] Processing extension yb2bacceleratorstorefront
BUILD FAILED
C:\hybris-commerce-suites-5.7.0.3\hybris\bin\platform\build.xml:121: The following error occurred while executing this line:
C:\hybris-commerce-suites-5.7.0.3\hybris\bin\platform\resources\ant\modulegen.xml:324: The following error occurred while executing this line:
C:\hybris-commerce-suites-5.7.0.3\hybris\bin\platform\resources\ant\modulegen.xml:330: The following error occurred while executing this line:
C:\hybris-commerce-suites-5.7.0.3\hybris\bin\platform\resources\ant\modulegen.xml:45: extgen.properties in source extension not found! this is not a template!
Total time: 22 seconds
C:\hybris-commerce-suites-5.7.0.3\hybris\bin\platform>
localextension.xml:
<extension name='mcc' />
<extension name='backoffice' />
<extension name='commercesearchbackoffice' />
<extension name='commerceservicesbackoffice' />
<extension name='solrfacetsearchbackoffice' />
<extension name='yacceleratorcockpits' />
<extension name='yacceleratorinitialdata' />
<extension name='yacceleratorfulfilmentprocess' />
<extension name='yacceleratorstorefront' />
<extension name='yaddon' />
<extension name='ycommercewebservices' />
<extension name="electronicsstore"/>
<extension name="apparelstore"/>
<extension name='solrserver' />
<extension name='liveeditaddon' />
<extension name='acceleratorwebservicesaddon' />
<extension name='powertoolsstore' />
<extension name='b2bcommercebackoffice' />
<extension name='b2badmincockpit' />
<extension name='b2bacceleratoraddon' />
<extension name='commerceorgaddon' />
<extension dir="C:\hybris-commerce-suites-5.7.0.3\hybris\bin/custom/yb2bacceleratorstorefront"/>
答案 0 :(得分:1)
因为您在自定义文件夹中有新的自定义yb2baccelerators前端扩展,并且由于localextensions.xml片段上方的行而自动加载。
然后,此扩展程序尝试参与modulegen,因为它包含相同的modulegen键,因为您只是生成它,但在生成它时不再是模板。
你应该先做modulegen。然后,根据需要生成尽可能多的额外店面。但请记住,这些只是帮助你的工具,如果你想做更复杂的事情,你必须弄清楚如何。
答案 1 :(得分:0)
我没有对此进行测试,但我怀疑这是一个路径问题。
<extension dir="C:\hybris-commerce-suites-5.7.0.3\hybris\bin/custom/yb2bacceleratorstorefront"/>
它存在吗?尝试按名称加载扩展名 - 例如
<extension name="yb2bacceleratorstorefront"/>
如果这样做,那么它指出了基于目录加载扩展的问题(很可能是不正确的路径)。
答案 2 :(得分:0)
通过以上解决方案,你也可以嘲笑它。
您有一个自定义扩展程序 - yb2bacceleratorstorefront。请检查其extensioninfo.xml
,您可以在下面找到
meta key="modulegen-name" value="accelerator,b2baccelerator,chinaaccelerator"
评论这一行解决了我的问题。