thymeleaf/thymeleaf — pull request #280 by balazs-zsoldos (2014-05-05 14:00:52+00:00)
Title: Adding OSGi manifest headers to thymeleaf core.

As much as I see, there has been an issue since two years about this topic:

https://github.com/thymeleaf/thymeleaf/issues/32

I would like to ask you to add the changes to the pom.xml of thymeleaf!
We tested it and used it within Equinox and it worked for us. Some notes:

We used MVEL2 instead of OGNL. MVEL2 has a nice jar that also contains
OSGi MANIFEST entries. As MVEL2 could have been used pretty easily
(if we do not care that there are some syntax changes in the expressions),
I made the OGNL and javassist packages optional in the MANIFEST.

We do not use Spring at all. Spring was designed to simplify the Java EE world
and it does a great job. However, the philosophy of Spring does not fit into the
OSGi KISS concept. Spring itself does not support OSGi anymore (although
OSGi is more widely supported from year to year). I think it is not important to handle
thymeleaf-core and thymeleaf-spring jars together concerning to OSGi.
As a first (and probably only one) step, it is enough to put OSGi MANIFEST
entries only into the thymeleaf-core.