Unresolved requirement: Import-Package: com.apple.mrj

Ann james, modified 7 Years ago. New Member Posts: 14 Join Date: 10/2/18 Recent Posts

I am getting the above error when i am trying to start my portlet through gogo shell.

But i am not able to find this jar MRJToolkitStubs does not satisfy the dependency.

 

thumbnail
Minhchau Dang, modified 7 Years ago. Liferay Master Posts: 598 Join Date: 10/22/07 Recent Posts
Ann james:

I am getting the above error when i am trying to start my portlet through gogo shell.

Are you migrating a 6.2 plugin to the newer release? If so, and none of those libraries were in your .war, and your .war was working fine, that probably means you don't need any of the missing packages, and you could just mark everything that's not already being pulled in with compileInclude as being optional by adding the following to your bnd.bnd:

Import-Package: *;resolution:=optional

If this isn't a migration of an older plugin, and you really do need that artifact, are you sure that the repository you've specified has a copy of mrj:MRJToolkitStubs:1.0? If not, you'll need to also add something like Maven Central to make sure you're able to download that artifact.

Ann james, modified 7 Years ago. New Member Posts: 14 Join Date: 10/2/18 Recent Posts

Thank you its working now.