Я хочу установить SmartEdit в наш проект. В нашем проекте нет настраиваемого yacceleratorstorefront, но есть настраиваемый ycommercewebservices.
Я добавил все расширения (кроме ysmarteditmodule) в наше расширение и запустил
ant addoninstall -Daddonnames=smarteditaddon -DaddonStorefront.ycommcerwebservices=ourcustomercommercewebservices
На ant clean all
появляется следующая ошибка:
[yjavac] 1. ERROR in some_path_to_the_repo/core-customize/hybris/bin/custom/ourcustomercommerwebservices/web/addonsrc/smarteditaddon/de/hybris/platform/smarteditaddon/interceptors/beforeview/SmarteditaddonCmsPageBeforeViewHandler.java (at line 6)
[yjavac] import de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController;
[yjavac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[yjavac] The import de.hybris.platform.acceleratorstorefrontcommons.controllers cannot be resolved
[yjavac] ----------
[yjavac] 2. ERROR in some_path_to_the_repo/core-customize/hybris/bin/custom/ourcustomercommerwebservices/web/addonsrc/smarteditaddon/de/hybris/platform/smarteditaddon/interceptors/beforeview/SmarteditaddonCmsPageBeforeViewHandler.java (at line 7)
[yjavac] import de.hybris.platform.acceleratorstorefrontcommons.interceptors.BeforeViewHandler;
[yjavac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[yjavac] The import de.hybris.platform.acceleratorstorefrontcommons.interceptors cannot be resolved
[yjavac] ----------
[yjavac] 3. ERROR in some_path_to_the_repo/core-customize/hybris/bin/custom/ourcustomercommerwebservices/web/addonsrc/smarteditaddon/de/hybris/platform/smarteditaddon/interceptors/beforeview/SmarteditaddonCmsPageBeforeViewHandler.java (at line 28)
[yjavac] public class SmarteditaddonCmsPageBeforeViewHandler implements BeforeViewHandler
[yjavac] ^^^^^^^^^^^^^^^^^
[yjavac] BeforeViewHandler cannot be resolved to a type
[yjavac] ----------
[yjavac] 4. ERROR in some_path_to_the_repo/core-customize/hybris/bin/custom/ourcustomercommerwebservices/web/addonsrc/smarteditaddon/de/hybris/platform/smarteditaddon/interceptors/beforeview/SmarteditaddonCmsPageBeforeViewHandler.java (at line 38)
[yjavac] public void beforeView(final HttpServletRequest request, final HttpServletResponse response, final ModelAndView modelAndView)
[yjavac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[yjavac] The method beforeView(HttpServletRequest, HttpServletResponse, ModelAndView) of type SmarteditaddonCmsPageBeforeViewHandler must override or implement a supertype method
[yjavac] ----------
[yjavac] 5. ERROR in some_path_to_the_repo/core-customize/hybris/bin/custom/ourcustomercommerwebservices/web/addonsrc/smarteditaddon/de/hybris/platform/smarteditaddon/interceptors/beforeview/SmarteditaddonCmsPageBeforeViewHandler.java (at line 43)
[yjavac] final AbstractPageModel page = (AbstractPageModel) modelAndView.getModel().get(AbstractPageController.CMS_PAGE_MODEL);
[yjavac] ^^^^^^^^^^^^^^^^^^^^^^
[yjavac] AbstractPageController cannot be resolved to a variable
[yjavac] ----------
[yjavac] 5 problems (5 errors)
BUILD FAILED
Я обнаружил аналогичную проблему в https://answers.sap.com/questions/12771124/smarteditaddon-hybris-63-not-working.html, которая также связана со SmartEdit. Последний ответ:
Похоже, что buildcallbacks. xml в моем магазине не обновлен. Я сравнил его с таковым в yacceleratorstorefront, добавил недостающие части, а затем (после дополнительного добавления недостающих файлов) сборка прошла без проблем.
Но у нас нет yacceleratorstorefront в нашем проект. Итак, я сравнил yacceleratorstorefront / buildcallbacks. xml с нашими customercommerwebservices / buildcallbacks. xml, но безуспешно.
У вас есть идеи?
Спасибо за вашу помощь! С уважением, Филипп