Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

nchieffo
Level 1
Level 1

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)]

1 Accepted Solution
raghavc
Correct answer by
Level 5
Level 5

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

 

Selection_037.png

View solution in original post

4 Replies
hamidk92094312
Employee
Employee

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

nchieffo
Level 1
Level 1
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)
raghavc
Correct answer by
Level 5
Level 5

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

 

Selection_037.png

View solution in original post