Reputation: 9393
I noticed that there are already spring-*.jars in the ROOT/WEB-INF/lib/ directory of liferay tomcat. This is the Liferay core.
Which release of the spring mvc framework is included in Liferay 6.0.6?
Is there a newer spring release in Liferay 6.1?
Can import the classes in these spring jars into my own portlets? Or is this bad practice, or technically not advisable?
Upvotes: 0
Views: 1030
Reputation: 48087
Liferay's sourcecode has a lib/versions.* file, there you should find everything you need to know about the versions of third party code in there. E.g. spring-*.jar in Liferay 6.1.0 is declared as being version 3.0.6. Check for the others.
Typically your plugins are free to use whatever library (and version) they want. It makes sense to standardize on the javascript side to introduce as few as possible libraries and versions to be embedded. On the server side you're free to use whatever you want.
If you want to use Liferay's versions, you can just declare what you'd like to use from Liferay (in WEB-INF/liferay-plugin-package.properties) - this will make a copy of Liferay's versions of those libraries available to your plugin.
Upvotes: 3