I have a web application with spring and maven. The application is divided into maven modules. I have an "application-web" module that generates war. Another "application-ear" module that generates an ear. And another "application-static" with css, js and images that generates a zip file.
This would be the outline of my application:
I want to deploy the eclipse use files of "static" module, instead of using the files in the "application/src/main/webapp" directory. How can I do this? It is possible?
Don't waste your time with unpacking resources, everything works out of the box:
WEB-INF/classes
) or compressed (WEB-INF/lib
)META-INF/resources
, see here or use Spring's built in mvc:resources
element.Simply add the dependency snippets in your WAR POM and your are done.