Dear All,
We are migrating AEM 6.5 to AEM cloud.
We saw below error log in the maven build
Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce (enforce-maven) on project
We have updated the java 11 as shown below. Still we are getting build error.
Can anyone please help here.
Thanks in Advance
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
@SUNITACH2 Are you running this build locally or is this error coming out of a pipeline build ?
Views
Replies
Total Likes
@SUNITACH2 If the Cloud Manager Pipeline is failing, please refer to the Documentation for setting the Maven JDK Version :
https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/usi...
Views
Replies
Total Likes
HI @SUNITACH2,
I think you forgot this,
To ensure Cloud Manager uses the correct Java version (Java 11) during the build process, you need to explicitly define it using the .cloudmanager/java-version
file.
Create a file named:
.cloudmanager/java-version
And add the following exact content inside it:
11
No spaces, no extra lines — just 11
.
Hope that helps!
Regards,
Santosh
Views
Likes
Replies