Abstract
What are the available JDK versions with cloud manager?
Java versions installed are Oracle JDK 8u202 and 11.0.2.
Some times, when we deploy our code, people complaint java version is not matching (for e.g. we are using a JDK 11 specific API and this Java class is giving error in cloud manager) We will see how to set the relevant java version now.
How to update the Java version of project build environment in AEM As Cloud Manager
By default, projects are built using Java 8. Customers who want to use Java 11 in their projects can do this using the Apache Maven Toolchains Plugin.
In the pom.xml file, add a entry that looks like this:
org.apache.maven.plugins
maven-toolchains-plugin
1.1
toolchain
11
oracle
A few FAQs about AEM As Cloud Service build environment are given below
What is the OS used for AEM as CLoud service?
Build environment is Linux-based, derived from Ubuntu 18.04.
At present what is the maven version?
The installed maven is - Apache Maven 3.6.0 version.
Which java versions are supported by AEM as cloud service?
Java versions installed are Oracle JDK 8u202 and 11.0.2.
Which repository is configured as part of Maven Build ?
adobe-public
Any other tools or packages available in AEM As Cloud environment?
unzip, bzip2, libpng, imagemagick, graphicsmagick
My code has some script with Python or ruby script and I need to trigger it as part of my code build. Is this possible?
For this we need an appropriate language interpreter installed. This can be done by calling the 'exec-maven-plugin' to invoke APT.
Read Full Blog
Q&A
Please use this thread to ask the related questions.
Kautuk Sahni