Message Boards
Unresolved requirement: Import-Package: com.liferay.portal.kernel.util;
venkatesh vemula, modified 4 Years ago.
Unresolved requirement: Import-Package: com.liferay.portal.kernel.util;
Junior Member Posts: 37 Join Date: 8/1/12 Recent Posts
Hi All,I am using com.liferay.portal.kernel.util package in my module in liferay 7.2 ga1 CE version. But I am getting below error at the time of deployment.
Unresolved requirement: Import-Package: com.liferay.portal.kernel.util; version="[7.2.0,8.0.0)"_ [Sanitized]
I tried by changing the versions and including the resources in bnd.bnd file also
In build.gradle:compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.0.0"
In bnd.bnd:
Include-Resource:\
@com.liferay.util.java-2.2.2.jar,\
But it's not working. Could you please anyone help me.
Thanks in Advance.!
Unresolved requirement: Import-Package: com.liferay.portal.kernel.util; version="[7.2.0,8.0.0)"_ [Sanitized]
I tried by changing the versions and including the resources in bnd.bnd file also
In build.gradle:compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.0.0"
In bnd.bnd:
Include-Resource:\
@com.liferay.util.java-2.2.2.jar,\
But it's not working. Could you please anyone help me.
Thanks in Advance.!
Olaf Kock, modified 4 Years ago.
RE: Unresolved requirement: Import-Package: com.liferay.portal.kernel.util;
Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent Postsvenkatesh vemula:
Who or what made you do that? Why would you bring your own copy of a library that's long there?
In bnd.bnd:
Include-Resource:\
@com.liferay.util.java-2.2.2.jar,\
venkatesh vemula, modified 4 Years ago.
RE: Unresolved requirement: Import-Package: com.liferay.portal.kernel.util;
Junior Member Posts: 37 Join Date: 8/1/12 Recent Posts
Hi Olaf Kock,Somewhere I read one blog. By doing this it got resolv