As part of the mvn build process, I do want to download/install a javascript file that is published as a npm package.
Currently that file was copied into war/scripts/foobar.js which means that if a newer version of the foobar is published to npm, we would have to manually download it from there and update our code.
Isn't possible to integrate this dependency in a similar way as java dependencies?
If you could provide me with one example of doing this it would be great.