How could I reduce the Hybris server startup time?

前端 未结 11 1789
半阙折子戏
半阙折子戏 2021-02-14 14:52

I am working on a Hybris project and it is very time consuming to wait 350 - 550 sec for a single Hybris server startup, for e

11条回答
  •  你的背包
    2021-02-14 15:29

    Thanks to all of you, who wrote an answer! :) Actually I found a really great solution for my own question:

    • I modified the context.xml in the platform/tomcat/conf folder to be reloadable and to watch the WEB-INF folder
    • I use IntelliJ to do the developing stuff, and it has an option to compile things, like a single java file or a whole package/module/extension. So I modified the compilation path to the WEB-INF/classes and that's all.

    Now if I start a hybris server and I modify (or create) a file in my project, I just run a compile on the modified package or just on the single current file and after a few seconds Tomcat reloads the modified stuff in the current extension.

    UPDATE: Since a Hybris extension could not use the "webapp" part of other extensions, it seems like it is not possible to reload any dependency. So my solution is working only on "webapp only" extensions.

提交回复
热议问题