Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

AEM 6.2 upgrade error

Avatar

Level 2

In my AEM 6.1 project POM file, I have replaced below node with Uber.jar dependecy.

        <dependency>
                <groupId>com.adobe.aem</groupId>
                <artifactId>aem-api</artifactId>
                <version>6.0.0.1</version>
                <scope>provided</scope>
            </dependency>     

Replaced with below node

    <dependency>
                <groupId>com.adobe.aem</groupId>
                <artifactId>uber-jar</artifactId>
                <version>6.2.0</version>
                <classifier>obfuscated-apis</classifier>
                <scope>provided</scope>
            </dependency> 

After using above node, I'm running the project and getting below error. 

    failed to execute goal org.apache.felix:maven-scr-plugin:1.7.4:scr (generate-scr-descriptor)

Appreciate if anyone could provide any suggestions to resolve this error.

Thanks

Antony

1 Accepted Solution

Avatar

Correct answer by
Level 2

By referring other forums, I have updated pom with below changes and able to build the projects with success.

<dependency>
                <groupId>com.adobe.aem</groupId>
                 <artifactId>uber-jar</artifactId>
                <version>6.2.0-SP1</version>
               <scope>provided</scope>
                <classifier>apis</classifier>
   </dependency> 

Seems like I have to the version as 6.2.0-SP1.

Thanks

Antony

View solution in original post

7 Replies

Avatar

Level 10

For example - make sure you include: 

 <dependency>
            <groupId>org.apache.geronimo.specs</groupId>
            <artifactId>geronimo-atinject_1.0_spec</artifactId>
        </dependency>

As talked about in the article. 

Avatar

Level 2

Thanks Donald for the response.

Below is the exact error.

Failed to execute goal org.apache.felix:maven-scr-plugin:1.20.0:scr (generate-scr-scrdescriptor) on project XYZ123: Execution generate-scr-scrdescriptor of goal org.apache.felix:maven-scr-plugin:1.20.0:scr failed: A required class was missing while executing org.apache.felix:maven-scr-plugin:1.20.0:scr: Lorg/apache/sling/settings/SlingSettingsService;

Let me add above dependency and build the project again.

Thanks

Antony.

Avatar

Level 10

Need to see your Java code - looks like you have wrong dependencies in your POM file. 

Avatar

Correct answer by
Level 2

By referring other forums, I have updated pom with below changes and able to build the projects with success.

<dependency>
                <groupId>com.adobe.aem</groupId>
                 <artifactId>uber-jar</artifactId>
                <version>6.2.0-SP1</version>
               <scope>provided</scope>
                <classifier>apis</classifier>
   </dependency> 

Seems like I have to the version as 6.2.0-SP1.

Thanks

Antony