com.adobe.cq.wcm.core cannot find the simbol | Community
Skip to main content
Level 2
February 29, 2024
Solved

com.adobe.cq.wcm.core cannot find the simbol

  • February 29, 2024
  • 4 replies
  • 1963 views

Hi Team,

 

I'm not sure which Archetype the current project is using but whenever I want to extend a core component, It doesn't detect the package. 

 

I'm not sure if this is because uber-jar (currently 6.5.12) is not compatible with the core components the project has (2.20) or some other dependencies. 

 

the pom.xml doesn't have any dependency for the core components  

 

 

This is the first time I'm facing an issue like this so I've checked other post from the Adobe community but didn't work. You're inputs will be a great guidance to me in order to figure out the issue. 

Regards

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SureshDhulipudi

in IDE try Maven Reload Project / Generate Sources

check your settings.xml also - adobe public repository

4 replies

Mahedi_Sabuj
Community Advisor
Community Advisor
February 29, 2024

You need to add core.wcm.components.core dependency to your root and core pom.xml

<dependency> <groupId>com.adobe.cq</groupId> <artifactId>core.wcm.components.core</artifactId> <version>${core.wcm.components.version}</version> </dependency>

 

Mahedi Sabuj
Level 2
February 29, 2024

Hi, @mahedi_sabuj  I already added core.wcm.components.core to pom.xml and core.xml but the issue persists.

Mahedi_Sabuj
Community Advisor
Community Advisor
February 29, 2024

Sometimes IDE needs to restart for new dependency taking any effect. Could you please restart your IDE and try again?

Mahedi Sabuj
Imran Khan
Community Advisor
Community Advisor
February 29, 2024

@luis_ochoa In Intellij, right click on the project root folder -> maven and click on Reload Project and check if any build error is coming. It is not able to download dependency if I am not wrong. please confirm if it says Could not find artifact

Level 2
March 1, 2024

Disregard Guys. I was able to get this fixed. I'm not sure which button I pressed from my IDE but it know works. 

 

Appreciate all the help you gave me !! 😄