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
Solved! Go to Solution.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
Still getting same error.
Thanks
Antony.
Views
Replies
Total Likes
Need to see your Java code - looks like you have wrong dependencies in your POM file.
Views
Replies
Total Likes
email me more information - we will get this issue solved. scottm@adobe.com
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Views
Likes
Replies