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
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
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...
@SUNITACH2 Are you running this build locally or is this error coming out of a pipeline build ?
@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...
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
@SUNITACH2 Just checking in — were you able to resolve your issue?
We’d love to hear how things worked out. If the suggestions above helped, marking a response as correct can guide others with similar questions. And if you found another solution, feel free to share it — your insights could really benefit the community. Thanks again for being part of the conversation!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies