Expand my Community achievements bar.

SOLVED

Build failed in cloud manager but success in local after upgrading the SDK

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 6

Hi @KannaKarthi ,

 

What java version are you using? 

Versions:

  • 52 = Java 1.8
  • 55 = Java 11

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.

View solution in original post

3 Replies

Avatar

Correct answer by
Level 6

Hi @KannaKarthi ,

 

What java version are you using? 

Versions:

  • 52 = Java 1.8
  • 55 = Java 11

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.

Avatar

Level 8

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