adobe / adobe/aem-project-archetype
Frontend maven installation of node and npm fails / build fails for ui.apps module when generated via Archetype25 [bug]
- Dominant language
- JavaScript
- Stars
- 596
- Forks
- 431
- Avg merge
- 10d 6h
- Merged PRs (30d)
- 1
Description
### Issue
The installation of node / npm fails, which then fails the build when a new project is generated using Archetype25
### Versions
Maven 3.6.3
Archetype 25
### Additional Info
* There appears to be a long standing issue that is associated to frontend-maven-plugin related to this issue
* Simply setting a proxy config in the settings.xml for maven does not resolve the issue
### What I did to resolve
* Upgraded the frontend-maven-plugin version to 1.11.0
* Changed node version to 10.23.3
* Commented the specific npm version, and allowed the process to natively unpack the bundled npm version that comes with 10.23.3
* Set the value for the download root as a configuration
### Sample pom.xml config to resolve the issue
```
com.github.eirslett
frontend-maven-plugin
1.11.0
v10.23.3
https://nodejs.org/dist
install node and npm
install-node-and-npm
npm install
npm
```
### Expected Behaviour
* The OOTB project generated by the maven Archetype25 would build without error
### Actual Behaviour
* The ui.apps build fails
#### Steps to Reproduce
* Generate a new project using Archetype25 and the properties referenced herein
[archetype.properties.txt](https://github.com/adobe/aem-project-archetype/files/6001798/archetype.properties.txt)
Contributor guide
Research direction
Generate a new project with Archetype25 using the properties in archetype.properties.txt, then inspect the generated ui.apps Maven configuration and its frontend-maven-plugin setup. Reproduce the node/npm installation and build failure, comparing it with the configuration shown in the issue. Done means the out-of-the-box generated project builds without error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- build-system, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100