Upgrade from 7.0 GA5 to 7.1.1 GA2 dependency woes....

thumbnail
Pete Helgren, modified 6 Years ago. Regular Member Posts: 225 Join Date: 4/7/11 Recent Posts

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.

 

thumbnail
Alberto Chaparro, modified 6 Years ago. Liferay Master Posts: 560 Join Date: 4/25/11 Recent Posts

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.

thumbnail
Pete Helgren, modified 6 Years ago. Regular Member Posts: 225 Join Date: 4/7/11 Recent Posts

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