aem-project-archetype icon indicating copy to clipboard operation
aem-project-archetype copied to clipboard

core bundle fails to start in latest version or archetype(32) on AEMasCS SDK

Open cqsapient opened this issue 2 years ago • 6 comments

The core bundle generated fails to start after installation with error -

org.apache.sling.api.request,version=[2.5,3) -- Cannot be resolved org.apache.sling.api.resource,version=[2.13,3) -- Cannot be resolved

Its expecting [2.5,3) and [2.13,3) versions of the dependencies which are not present in

2021.10.5977.20211021T153528Z-211000

version of AEM SDK

cqsapient avatar Dec 20 '21 04:12 cqsapient

this was resolved by adding SDK version in the parameter. Issue is that when you use archetype version 32 with old SDK without specifying SDK version; it takes latest SDK version for compiling code against latest SDK version jar and the libraries version is also updated to latest. this should be mentioned in the docs to specify SDK version when using latest version of archetype.

cqsapient avatar Dec 22 '21 01:12 cqsapient

Please post a sample solution; was this part of your pom or maven build command? Which sdk version "works?"

FYI - core/pom.xml import org.apache.sling.api;version="[2.3,3)",* worked for me

dfparker2002 avatar Jan 01 '22 21:01 dfparker2002

There should be a line in the parent pom.xml like <aem.sdk.api>2022.1.6198.20220113T173638Z-211100</aem.sdk.api>. Ideally this is the same version as the AEM CS version your deploying to but at a minimum needs to be less. If your local AEM SDK is quite old you could run into this issue but should just download the latest from the software distribution portal. What is the reason for using an old version of the SDK?

godanny86 avatar Jan 19 '22 04:01 godanny86

Archetype 35 and this is still happening. What is the solution for this?

My parent POM has <aem.sdk.api>2022.2.6276.20220205T222203Z-220100</aem.sdk.api>

tauba avatar Feb 19 '22 01:02 tauba

I am seeing this error in AEM 6.5.13. In this case, what I should do?

RashidJorvee avatar Nov 28 '22 09:11 RashidJorvee

Please check my comment here and the corresponding post. I hope this helps.

PandianRamkumar avatar Jul 13 '23 14:07 PandianRamkumar