adobe / aem-project-archetype

Maven template to create best-practice websites on AEM.
https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/archetype/overview.html
Apache License 2.0
544 stars 419 forks source link

Getting Error Maven must be executed with a Java 11 JRE or higher. #1196

Open barshat7 opened 3 months ago

barshat7 commented 3 months ago

Forms users usually copy the changes from the newly created archetype into their existing project. On such instances if they copy the changes for requriedVersion = 11 and do not copy the .cloudmanager directory then the build in Cloud Service fails with below error

[WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message: Maven must be executed with a Java 11 JRE or higher.

Expected Behaviour

Should specify in the README that post release 48, the cloud service only supports Java 11 and in case they face any issue then they should update the .cloudmanager directory.

Actual Behaviour

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem