Using com.adobe.cq.wcm.core.components.internal.resource in my class | Community
Skip to main content
New Participant
May 28, 2020 9:04 AM UTC
Solved

Using com.adobe.cq.wcm.core.components.internal.resource in my class

Can I use classes from package osgi.wiring.package=com.adobe.cq.wcm.core.components.internal.resource in my project?

I imported ImageResourceWrapper class, but when I install my package I get this error

 

Unable to resolve aemlutech.core [584](R 584.36): missing requirement [aemlutech.core [584](R 584.36)] osgi.wiring.package; (osgi.wiring.package=com.adobe.cq.wcm.core.components.internal.resource) Unresolved requirements: [[aemlutech.core [584](R 584.36)] osgi.wiring.package; (osgi.wiring.package=com.adobe.cq.wcm.core.components.internal.resource)]

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
raghavc
raghavcAccepted solution
Level 4
May 28, 2020 5:26 PM UTC

No, wcm core bundle does not export the internal packages, So OSGI is unable to resolve the dependency. 

 

4 replies

raghavc
raghavcAccepted solution
Level 4
May 28, 2020 5:26 PM UTC

No, wcm core bundle does not export the internal packages, So OSGI is unable to resolve the dependency. 

 

Translate
Employee
May 28, 2020 2:42 PM UTC
Employee
May 28, 2020 12:00 PM UTC

How did you import the package ? i.e. in your "MNIFEST.MF" or as an embedded jar dependency ?

Translate
nchieffoAuthor
New Participant
May 28, 2020 2:27 PM UTC
I just created a new project from the latest maven archetype, created a new class in core project, models package and used the ImageResourceWrapper class directly. No maven import and no MANIFEST.MF change (I don't even have it in my project)
Translate