Maven include/assemble packaged static html project in war
I have war archive which has 开发者_运维问答its own xhtmls. js, html, css and so on in its webapp directory. It packages fine with maven. I have to include another static component which is pure html+js. How to do that? I try packaging the static project into jar file and add dependency to the war but it is placed in WEB-INF/lib/ as a jar file so it is not public accessable. I need to be in the root of my war like the other xhtml and static files.
I think you want to use a war overlay and have multiple war projects.
If you can't change the packaging type of the static project (from jar to war), you may want to use something like embedded-resources. This approach is less standard but pretty efficient.
精彩评论