Speed up maven war plugin

后端 未结 3 829
自闭症患者
自闭症患者 2021-02-08 07:47

The maven plugin works very slow for me. In my project the webapp folder has nearly 15000 small files (images, jsp, css, etc). When I assemble it with the maven, it first copies

3条回答
  •  一整个雨季
    2021-02-08 08:14

    I suggest that you use the use the war:inplace goal of maven-war-plugin together with a custom maven-antrun-plugin task.

    The war:inplace will generate the webapp in the WAR source directory. It will create all necessary extra folders under webapp.

    The antrun:run can be customized to create the war according to your special requirements.

    This will potentially improve the performance since most of those resource files you have will still be in the webapp folder and not being copied.

提交回复
热议问题