Simple question. I want to be able to use the updated interfaces and new features offered in Java 11. AEM documentation says it supports java 11. Can I use it to compile the code? Will it work fine with Cloud Manager?
Please advice. Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @hades0202
Cloud Manager now supports building projects with both Java 8 and Java 11. By default, projects are built using Java 8.
Customers who want to use Java 11 in their projects can do so using the Apache Maven Toolchains Plugin by adding the below <plugin> entry in the pom.xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<goals>
<goal>toolchain</goal>
</goals>
</execution>
</executions>
<configuration>
<toolchains>
<jdk>
<version>11</version>
<vendor>oracle</vendor>
</jdk>
</toolchains>
</configuration>
</plugin>
Please see the article from Adobe:
Hope this helps!
Thanks
Hi @hades0202
Cloud Manager now supports building projects with both Java 8 and Java 11. By default, projects are built using Java 8.
Customers who want to use Java 11 in their projects can do so using the Apache Maven Toolchains Plugin by adding the below <plugin> entry in the pom.xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<goals>
<goal>toolchain</goal>
</goals>
</execution>
</executions>
<configuration>
<toolchains>
<jdk>
<version>11</version>
<vendor>oracle</vendor>
</jdk>
</toolchains>
</configuration>
</plugin>
Please see the article from Adobe:
Hope this helps!
Thanks
Views
Replies
Total Likes
Hi @hades0202
I am using JDK 11 on both AEM 6.5 (2 years) and Cloud (1 year) and have not seen any issue so far.
Views
Replies
Total Likes