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

前端 未结 3 1346
遥遥无期
遥遥无期 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 11:14

    Alternatively, you can also use the run-war goal instead of run, e.g. mvn tomcat6:run-war. This wil use the exploded war in your build directory (and thus filtered resources). See this site. There is also run-war-only which skips the packaging phase.

提交回复
热议问题