Maven: Where to put generated resources for tomcat-maven-plugin?

前端 未结 3 1362
遥遥无期
遥遥无期 2021-02-13 10:30

I have CSS and JavaScript files in src/main/webapp directory of my project. I want to join add joined and minified version of these resources to my WAR file and to

3条回答
  •  自闭症患者
    2021-02-13 10:49

    Note the plugin is now maintained at Apache (so upgrade a bit :-) ) see http://tomcat.apache.org/maven-plugin-2.0/.

    Even it works using install I'm not sure it's the optimum solution (regarding io and build time).

    The tomcat run must be able to use resources from more than one directory (I'm not sure it's possible with the current tomcat embeded api).

    Can you add a feature request here https://issues.apache.org/jira/browse/MTOMCAT

    Thanks

提交回复
热议问题