one of my project bundle is not getting started because of this issues
com.adobe.cq.wcm.core.components.commons.link,version=[1.2,2) -- Cannot be resolved
when i check my pom.xml file there it is something like this , can any one suggest how to fix this ?
<dependency>
<groupId>com.adobe.cq</groupId>
<artifactId>core.wcm.components.core</artifactId>
<version>${core.wcm.components.version}</version>
<scope>provided</scope>
</dependency>
Solved! Go to Solution.
Views
Replies
Total Likes
What is the value of the <core.wcm.components.version> in your root pom? Maybe you need to upgrade that version.
This would basically mean that core component package is not present on your AEM instance.
Having the dependency will not include the package at run time. It will only help in compilation on your local.
So, if you have the dependency on core component package, then either install the core component package on your instance manually or it needs to be embedded in your project pom itself using filevault-package-maven-plugin.
You can refer this for sample https://github.com/adobe/aem-guides-wknd/blob/main/all/pom.xml#L238 (lines 238 to 254)
Hope this helps.
Check if the parent pom and core pom has values similar and check if that dependency is loaded in maven folder ,then
Rebuild it with mvn clean install -Padobe -public .
If the issue still persists check if that version is available or not (com.adobe.cq.wcm.core.components.commons.link,version=[1.2,2) )
It looks like you're experiencing an issue with a Maven dependency in your Adobe CQ project.
The error message indicates that the com.adobe.cq.wcm.core.components.commons.link dependency with a version range of [1.2, 2) cannot be resolved. This is likely because the core.wcm.components.core artifact you've declared in your pom.xml file doesn't include the commons.link module.
To fix this issue, you can try adding an explicit dependency for the commons.link module in your pom.xml file. Here's an example:
<dependency>
<groupId>com.adobe.cq</groupId>
<artifactId>core.wcm.components.commons.link</artifactId>
<version>${core.wcm.components.version}</version>
<scope>provided</scope>
</dependency>
Add this dependency alongside the existing core.wcm.components.core dependency. Make sure to use the same version ${core.wcm.components.version} to ensure consistency.
If you're still facing issues, you can try checking the following:
Let me know if this helps, or if you have further questions!
What is the value of the <core.wcm.components.version> in your root pom? Maybe you need to upgrade that version.
@Mohit-Servicenow Did you find the suggestions from users helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!
Views
Replies
Total Likes
@Mohit-Servicenow ,
The issue is due to absence of "com.adobe.cq.wcm.core.components" in the AEM.
To fix the issue you can try following
<embedded>
<groupId>com.adobe.cq</groupId>
<artifactId>core.wcm.components.content</artifactId>
<target>/apps/<projectname>-vendor-packages/application/install</target>
</embedded>
replace <projectname> with your actual project name.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies