Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Regrding Maven Build Issue In Cloud Pipeline

Avatar

Level 1

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. 

 

SUNITACH2_0-1744294672123.png

 

Can anyone please help here.

 

Thanks in Advance

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

3 Replies

Avatar

Community Advisor

@SUNITACH2 Are you running this build locally or is this error coming out of a pipeline build ? 

Avatar

Employee

@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...

Avatar

Community Advisor

HI @SUNITACH2,

I think you forgot this,

Screenshot 2025-04-15 at 11.59.09 AM.png

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.

What to Do

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