Do we need to move code base to maven archetype 23?

Avatar

Avatar
Validate 1
Level 2
arvindk091986
Level 2

Likes

2 likes

Total Posts

18 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
arvindk091986
Level 2

Likes

2 likes

Total Posts

18 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
arvindk091986
Level 2

26-08-2020

Hello All,
 
I am working on a short-term project that was developed on Archetype 10/13 on AEM6.2, because the maven version mentioned in the main POM is an old versioned one. The Classic UI components are supposed to be upgraded to Touch UI, so that it supports for AEM 6.5 too going forward. In the process of upgrade, I have updated the POM file with the required versions of the respective dependencies and that had been successful upon code build. But when I tried upgrading classic ui components and writing few backend services/servlets, I started getting the error "Unable to load compiled class " which I believe is related to the SCR Annotations(even after the dependency version was upgraded I see this error). Due to this, I was wondering if upgrading the project to AEM 6.5 Archetype 23 help? I wanted to see if I can move the codebase to Archetype 23 or is there anything that I might be missing for fixing the error - "Unable to load compiled class".
 
Appreciate your help. 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
MVP
Theo_Pendle
MVP

Likes

238 likes

Total Posts

251 posts

Correct reply

105 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile

Avatar
Validate 1
MVP
Theo_Pendle
MVP

Likes

238 likes

Total Posts

251 posts

Correct reply

105 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile
Theo_Pendle
MVP

29-08-2020

Hi @arvindk091986,

Migrating from AEM 6.2 in Classic UI to AEM 6.5 in Touch UI is going to be a BIG project. I'm speaking from experience as a project I'm working on from AEM 6.3 in Touch UI to AEM 6.5 in Touch UI is going to take roughly 300 man days.

You would have to share the whole stacktrace with us so we could help you identify the source of the error but if you've already narrowed it down to annotation then you probably have an incompatibility between WCM Use API and Apache Felix annotations vs Sling Models and OSGI annotations.

If I were you I would:

  1. Notify the people in charge that migrating from 6.2 to 6.5 is not a walk in the park
  2. Start a fresh project from Archetype 23
  3. Start porting your code from your old project to the new project, one class at a time and testing to see if
    1. It works on the server
    2. Your unit tests still run (they probably will not).

Good luck! If you're planning a full migration from 6.2 to 6.5, don't hesitate to reach out to me on LinkedIn for advice: https://www.linkedin.com/in/theo-pendle-1630a52a (I won't even charge you 😉)

Answers (2)

Answers (2)

Avatar

Avatar
Springboard
MVP
Shashi_Mulugu
MVP

Likes

234 likes

Total Posts

295 posts

Correct reply

67 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Applaud 100
Establish
View profile

Avatar
Springboard
MVP
Shashi_Mulugu
MVP

Likes

234 likes

Total Posts

295 posts

Correct reply

67 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Applaud 100
Establish
View profile
Shashi_Mulugu
MVP

28-08-2020

@arvindk091986 To understand your question correctly, Are you planning to uplift project code base from Old archetype to ARchetype23 and deploy to AEM 6.2? or you want to uplift codebase and migrate to AEM 6.5? As per the documentation minimum, AEM version has to be AEM 6.3.3. to use Archetype 23.

 

Shashi_Mulugu_0-1598622658430.png

 

 

 

Avatar

Avatar
Boost 250
MVP
Nikhil-Kumar
MVP

Likes

251 likes

Total Posts

262 posts

Correct reply

38 solutions
Top badges earned
Boost 250
Validate 1
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Boost 250
MVP
Nikhil-Kumar
MVP

Likes

251 likes

Total Posts

262 posts

Correct reply

38 solutions
Top badges earned
Boost 250
Validate 1
Ignite 3
Ignite 1
Give Back 5
View profile
Nikhil-Kumar
MVP

26-08-2020

@arvindk091986 

I upgraded from 6.4.3 to 6.5.5., I only updated POM.xml and other dependencies.
But as your archetype and AEM version is quite older, I would suggest you to use latest archetype as per my past experience of migration.

Thanks,
Nikhil