AEM 6.2 upgrade error | Community
Skip to main content
New Participant
February 14, 2017
Solved

AEM 6.2 upgrade error

  • February 14, 2017
  • 7 replies
  • 2545 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Antony679

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

7 replies

Antony679Accepted solution
New Participant
February 14, 2017

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

smacdonald2008
New Participant
February 14, 2017

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

smacdonald2008
New Participant
February 14, 2017

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

New Participant
February 14, 2017

Still getting same error.

Thanks

Antony.

New Participant
February 14, 2017

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.

smacdonald2008
New Participant
February 14, 2017

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. 

smacdonald2008
New Participant
February 14, 2017

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.