Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Upgrade from 7.0 GA5 to 7.1.1 GA2 dependency woes....
I am close to solving this but stuck on a last dependency that I
can't just seem to fix. Environment is:
New LR 7.1.1 Tomcat Bundle
New Eclipse installation
- Eclipse Java EE IDE for Web Developers.
Version: 2018-09 (4.9.0)
Build id: 20180917-1800
New LR SDK Install into Eclipse (3.4)
Imported my portlet projects one by one into a new workspace.
Resolved issues with Liferay Kernel version (just built a new
Module project and examined the gradle settings which I then copied to
my projects)
Left with this final dependency error: Unresolved requirement:
Import-Package: freemarker.cache_ [Sanitized]
I have one class that is used to send email via a Freemarker
Template. I have this gradle entry:
compile group: 'org.freemarker', name: 'freemarker', version: '2.3.16'
In the 7.0 version, I have no trouble building or deploying. In 7.1.1 I get the error after deploying. The module won't activate because it can't seem to find the reference even though the compile is A-OK. The class uses the following imports:
import freemarker.cache.FileTemplateLoader;
import
freemarker.template.Configuration;
import
freemarker.template.Template;
import freemarker.template.TemplateException;
So, what did I miss here? It seemed pretty straight forward to
upgrade to 7.1.1 , especially when I resolved the Liferay kernal
issue (using version 3.0.0 fixed it) But the Freemarker dependency
is critical. Tried everything I can think of to fix it.
Hi Pete,
I am not an expert on defining the dependencies but could you try:
compileInclude group: 'org.freemarker', name: 'freemarker', version: '2.3.16'
Just in case you also need to deploy the dependency together you bundle.
Let us know about your progress.
Regards.
Thanks. I tried that and ended up with yet another dependency error
(different class). I am going to temporarily comment out the code
that uses the Freemerker template and compile without it and then
circle around later to trace the dependency issue.
Seems like there are quite a few subtle differences in 7.1.1 vs
7.0 I now have a database connection problem to solve (new post).
Thanks
Powered by Liferay™