Skip to main content
rk39193348
Level 4
Aug 12, 2020 3:03 PM UTC
Solved

Imported Packages Cannot be resolved

Hi All,

I am getting the above dependency issues in system console, but my build is successful in eclipse. I checked in http://localhost:4502/system/console/depfinder, but the dependency when added in eclipse gives me build issues. Do you know how to resolve this?  

 

com.day.cq.wcm.api,version=[1.27,2) -- Cannot be resolved
com.googlecode.htmlcompressor.compressor -- Cannot be resolved

org.apache.commons.lang,version=[2.6,3) -- Cannot be resolved

org.apache.sling.models.annotations,version=[1.5,2) -- Cannot be resolved
org.apache.sling.models.factory,version=[1.4,2) -- Cannot be resolved

org.json.simple,version=[1.1,2) -- Cannot be resolved
org.json.simple.parser,version=[1.1,2) -- Cannot be resolved
org.jsoup,version=[1.8,2) -- Cannot be resolved
org.jsoup.nodes,version=[1.8,2) -- Cannot be resolved
org.jsoup.select,version=[1.8,2) -- Cannot be resolved
org.osgi.service.component,version=[1.4,2) -- Cannot be resolved

 

Regards,

Ranjitha

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Adobe Employee
Aug 13, 2020 6:59 PM UTC

Most often that's caused by building against a version X of the uber.jar and deploying into a different version Y of AEM. Can you share which version of the uber.jar you are referencing in your POM and what AEM version you are deploying to?

 

Regards,

Jörg

6 replies

Community Advisor
Aug 12, 2020 3:32 PM UTC

Are you importing all the required packages to the bundled?

 

Verify if you have some configuration like below in the core pom.xml

 

Import-Package: javax.annotation;version=0.0.0,*

 

Another issue might be due to the version mismatch, ensure the correct uber-jar version included in your parent pom.xml file.

 

Regards

Albin I

www.albinsblog.com

 

Translate
rk39193348
Level 4
Aug 12, 2020 4:10 PM UTC
Still I am getting same issue, It is not getting resolved
Translate
joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
Aug 13, 2020 6:59 PM UTC

Most often that's caused by building against a version X of the uber.jar and deploying into a different version Y of AEM. Can you share which version of the uber.jar you are referencing in your POM and what AEM version you are deploying to?

 

Regards,

Jörg

Translate
rk39193348
Level 4
Aug 13, 2020 7:37 PM UTC
I think Uber jar is 6.4 and AEM is 6.3
Translate