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
Bedrock Mission!

Learn more

View all

Sign in to view all badges


AEM | Cloud Manager Build Issue | Java 11


Level 3



Facing an issue while deploying my code through CLOUD manager with java 11. Getting below error. Any pointer?



494 [main] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project ****.services: Fatal error compiling: invalid flag: --release -> [Help 1]

1 Accepted Solution


Correct answer by
Level 9
2 Replies


Correct answer by
Level 9

Please remove <release> tag from maven-compiler-plugin in pom.xml. It should help. 

Below are the links for similar issue with solution :



Level 3

Fix that solved our issue is done on top of this


Updates has been request in this document and will soon be available.


Changes are -


The [Maven Toolchains Plugin]( allows projects to select a specific JDK (or toolchain) to be used in the context of toolchains-aware Maven plugins. This is done in the project's `pom.xml` file by specifying a vendor and version value.

This toolchain plugin can be added as part of a profile as shown below.



This will cause all toolchains-aware Maven plugins to use the Oracle JDK, version 11.