Hi all,
I had upgraded my SDK to the latest version. Project build is successful in local but it failed in cloud manager.
Can anyone suggest the solution for this.
Thanks.
This is the error that I had got from log:
07:54:59,491 [main] [ERROR] bad class file: /root/.m2/repository/com/adobe/aem/aem-sdk-api/2024.8.17569.20240822T203847Z-240700/aem-sdk-api-2024.8.17569.20240822T203847Z-240700.jar(org/apache/jackrabbit/api/security/user/Authorizable.class)
07:54:59,491 [main] [ERROR] class file has wrong version 55.0, should be 52.0
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @KannaKarthi ,
What java version are you using?
Versions:
Seems like maven is using Java 11 for build, but cloud manager - 1.8.
Please. check .cloudmanager/java-version file under project source. Details: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/usi...
In addition, check java version for maven-compiler-plugin.
Hi @KannaKarthi ,
What java version are you using?
Versions:
Seems like maven is using Java 11 for build, but cloud manager - 1.8.
Please. check .cloudmanager/java-version file under project source. Details: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/usi...
In addition, check java version for maven-compiler-plugin.
Hi @KannaKarthi, You need to update Cloud Manager Java JDK to v11.
https://ms-29.com/aem/sites/update-java-jdk-v11-for-aem-cloud
It is recommended to set the JDK version for the entire Maven execution to 11 for Adobe Cloud Service projects, irrespective of SDK version, and remove/update Java 8 dependencies in the code base for Java 11 - if any present in code base
Views
Likes
Replies
Views
Likes
Replies