Imported Packages Cannot be resolved

Avatar

Avatar
Validate 10
Level 2
rk39193348
Level 2

Like

1 like

Total Posts

92 posts

Correct reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 10
Level 2
rk39193348
Level 2

Like

1 like

Total Posts

92 posts

Correct reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
rk39193348
Level 2

12-08-2020

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

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,134 likes

Total Posts

3,161 posts

Correct reply

1,079 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,134 likes

Total Posts

3,161 posts

Correct reply

1,079 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

13-08-2020

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

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
MVP
Albin_Issac
MVP

Likes

106 likes

Total Posts

119 posts

Correct reply

33 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Validate 1
MVP
Albin_Issac
MVP

Likes

106 likes

Total Posts

119 posts

Correct reply

33 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Albin_Issac
MVP

12-08-2020

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