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 418 forks source link

Project with archetype 41 build failing with maven version less than 3.6.0 #1061

Open Rahul-Kumar-AIG opened 1 year ago

Rahul-Kumar-AIG commented 1 year ago

Expected Behaviour

Project (archetype 41 ) creation and build (mvn clean install ) should go through successfully using maven version 3.3.9+ as per the documentation .

Archetype | AEM as a Cloud Service | AEM 6.5 | Java SE | Maven -- | -- | -- | -- | -- 41 | Continual | 6.5.7.0+ | 8, 11 | 3.3.9+

Actual Behaviour

Project (archetype 41 ) creation is successfull but build (mvn clean install ) is failure with error while using maven version 3.5.3 which is greater than the version mentioned in https://github.com/adobe/aem-project-archetype .

[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.0:install-node-and-npm (install node and npm) on project mysiteAdmin.ui.frontend: The plugin com.github.eirslett:frontend-maven-plugin:1.12.0 requires Maven version 3.6.0 -> [Help 1]

Reproduce Scenario (including but not limited to)

With Maven version 3.5.3 , issue is reproducible

Steps to Reproduce

  1. Create a project of archetype 41 --> mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=41 -D appTitle="My SiteAdmin" -D appId="mysiteAdmin" -D groupId="com.mysiteAdmin
  2. after project creation is successfull , cd mysiteAdmin
  3. mvn clean install

Platform and Version

Windows 10 , Command Prompt , Zulu JDK 11

Sample Code that illustrates the problem

NA

Logs taken while reproducing problem

[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.0:install-node-and-npm (install node and npm) on project mysiteAdmin.ui.frontend: The plugin com.github.eirslett:frontend-maven-plugin:1.12.0 requires Maven version 3.6.0 -> [Help 1]