Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM | Cloud Manager | Java 11 Build issues

Avatar

Avatar
Ignite 1
Level 2
NehaCMS
Level 2

Likes

18 likes

Total Posts

33 posts

Correct Reply

2 solutions
Top badges earned
Ignite 1
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Ignite 1
Level 2
NehaCMS
Level 2

Likes

18 likes

Total Posts

33 posts

Correct Reply

2 solutions
Top badges earned
Ignite 1
Validate 1
Boost 5
Boost 3
Boost 10
View profile
NehaCMS
Level 2

22-03-2021

Hi Team,

 

Facing issues while building code in Java 11 on Cloud Manager. Followed https://experienceleague.adobe.com/docs/experience-manager-cloud-service/onboarding/getting-access/c... 

 

and getting

 

05:04:24,675 [main] [ERROR] Failed to execute goal org.apache.felix:maven-scr-plugin:1.26.4:scr (generate-scr-scrdescriptor) on project : Unable to load compiled class: has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 -> [Help 1]

 

07:59:56,450 [main] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on : Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test failed:  has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 -> [Help 1]

 

Can you please update on same and next steps

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
Level 4
bilal_ahmad
Level 4

Likes

66 likes

Total Posts

108 posts

Correct Reply

16 solutions
Top badges earned
Springboard
Validate 10
Validate 1
Ignite 1
Establish
View profile

Avatar
Springboard
Level 4
bilal_ahmad
Level 4

Likes

66 likes

Total Posts

108 posts

Correct Reply

16 solutions
Top badges earned
Springboard
Validate 10
Validate 1
Ignite 1
Establish
View profile
bilal_ahmad
Level 4

22-03-2021

Hi @NehaCMS , first off you need to get rid of all the SCR annotations and replace them with OSGi R6/R7 annotations. Post that your build will probably not fail. 
Reference : https://helpx.adobe.com/in/experience-manager/kb/cloud-manager-build-on-java11-aem.html 

Thanks,

Bilal.

Answers (0)