SCR to R7 Migration (DS annotation)

Avatar

Avatar

tushaar_srivastava

Avatar

tushaar_srivastava

tushaar_srivastava

26-08-2020

Hi Team,

I am new to DS annotation.

We were using SCR annotation, now we are getting like this is deprecated and now for any new service (workflow, servlet or scheduler) creation we need to use R7 annotations.

tushaars9735484_0-1598474070390.png

 

I tried to follow : http://www.sgaemsolutions.com/2017/07/migration-of-scr-annotations-to-osgi-r6.html

To use R7 annotation. but after adding plugin and dependencies to pom.xml and build project still I am seeing error.

So could you please guide me how to Migrate from SCR to DS annotation(R7).
1- is there any help guide documentation SCR to R7?

 

2- do we need to Migrate all the old code from SCR to DS annotation, if we dn't migrate old code and kept as is SCR annotation what will be the impact?



@kautuk_sahni  @Arun_Patidar  @Vijayalakshmi_S  @vanegi 

aem6.5 maven osgi pom.xml R7 scheduler SCR annotation servlet Touch UI workflow

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Vijayalakshmi_S

MVP

Avatar

Vijayalakshmi_S

MVP

Vijayalakshmi_S
MVP

26-08-2020

Hi @tushaar_srivastava,

As a first step, I suggest to go through below link which explains about SCR and OSGI annotations, concerns about migration, mixed use and related 

In particular for OSGI R7 annotation, details about plugin, dependency details with example is highlighted in 

Try following the links and try once in local with one simple class being changed to OSGI R7 annotation and build project.

Share the error details that you come across as you build.

 

Answers (0)