I want to program against the Spring Portlet MVC framework in liferay running under Tomcat. For each portlet, I can put the spring framework -jars in the WEB-INF/lib directory of that portlet. I prefer to not do this. Seems redundant to me. Instead, can I put the spring framework jars somewhere else to make a single selection of spring jars available to all my future portlets?
To my understanding, these locations are available, but which is "best"?
- ROOT/WEB-INF/lib/ (this is the dir of the liferay core)
- tomcat/lib/ext (default location for all web-apps)
- docroot/WEB-INF/ext-lib/global (in ext folder of of the liferay SDK)