Expand my Community achievements bar.

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

See this Article that shows using Urber 6.2 

https://helpx.adobe.com/experience-manager/using/first_htl_WCMUsePojo.html

Looks like you have dependency issues. 

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 2

Still getting same error.

Thanks

Antony.

Avatar

Level 10

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

Avatar

Level 10

email me more information - we will get this issue solved.  scottm@adobe.com 

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