How do I load jar resources into META-INF\resources in a derivative project?

Go To StackoverFlow.com

1

I have a core Web-Base.jar file that has shared components that I use in my web applications.

I'm using Wicket 1.5. While trying to Solve a problem I was browsing the javadoc and found MetaInfStaticResourceReference which I think could improve my applications efficiency, and simplicity.

How can I set up Web-Base so that my Web Applications that list Web-Base as a dependency have the necessary resources added to META-INF/resources/* in the final .war file?

NOTE: I'm using

  • wicket 1.5.5
  • Maven
  • Tomcat 6 (just started looking into upgrading to Tomcat 7.)
2012-04-05 19:02
by Raystorm


1

This will work only on Tomcat 7 because this is supported only in Servlet3 specification. Put the resources in $PROJECT/src/main/resources/META-INF/resources/ folder.

2012-04-10 10:41
by martin-g
Ads