brianchandotcom/liferay-portal — pull request #22150 by shuyangzhou (2014-11-12 18:20:50+00:00)
Title: Lps 51439

@cgoncas

CC @rotty3000
Ray, please take a look at the last commit.

In ModuleFrameworkImpl._getSystemPackagesExtra(), it has a file cache at ${java.io.tmpdir}/osgi with files system-packages.txt and system-packages.hash

The cache has no way to invalidate itself on execution classpath change, like the change in this pull.

As a result, the cache is preventing new "META-INF/MANIFEST.MF" in the classpath from being loaded, if I have a previously generated cache files from old classpath.

So I had to have the build script to remove the cache folder. But this should really be fixed at code level by a proper cache invalidation logic. I will leave this one to you, thanks!