aem-project-archetype
aem-project-archetype copied to clipboard
frontend-maven-plugin unable to download node/npm
Hi,
I am having the same issue that is stated here https://github.com/eirslett/frontend-maven-plugin/issues/440 where my company does not allow Node to be downloaded and will also not allow a proxy configuration to be setup to download it either.
This is causing the build to fail at this step. Is there an alternative that can be suggested?
If your company has its own Node Repository Manager (e.g. Artifactory) in use, you can use this to obtain NPM and Node as a mirror repository by adjusting the following values of the Maven plugin configuration:
<configuration> <nodeDownloadRoot>http://myproxy.example.org/nodejs/</nodeDownloadRoot> <npmDownloadRoot>https://myproxy.example.org/npm/</npmDownloadRoot> </configuration>
By its nature, the repository manager is allowed to communicate to the Internet and can obtain the necessary resource for you.
Unfortunately they will not allow Node or NPM to be downloaded via their hosted repository, it has to be installed via a Self Service tool and we are limited to 2 versions of node :(, so I am unable to point to a hosted package.
Hi @ChazUK, I think the only option for you (as also mentioned in eirslett/frontend-maven-plugin#471) is to replace the frontend-maven-plugin with the maven-exec-plugin.