aem-project-archetype icon indicating copy to clipboard operation
aem-project-archetype copied to clipboard

frontend-maven-plugin unable to download node/npm

Open ChazUK opened this issue 2 years ago • 3 comments

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?

ChazUK avatar Jan 11 '22 14:01 ChazUK

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.

gerrG1t avatar Jan 11 '22 14:01 gerrG1t

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.

ChazUK avatar Jan 11 '22 15:01 ChazUK

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.

bpauli avatar Jan 14 '22 13:01 bpauli