A simple proxy that makes Npm packages appear as if they are Maven artifacts.
The intended use for this is including Javascript resources such as Jquery, Bootstrap, and more in Java web applications.
You can just add npm packages as ordinary Maven dependencies and have Maven download and cache them for you, as well as adding the Jars to your classpath for accessing the resources.
See the Wiki for more information.
Npm2Mvn is currently still in beta stage, but we hope to rapidly bring it up to release quality. We have been using it ourselves this past year and it has been pretty rock solid.
In the mean-time though, we have an experimental public repository at https://npm2mvn.jadaptive.com that you can try out, or host your own by downloading one of our pre-release self-updating installers.
Of course, you can always clone the source and build your own server. Is is even fully compatible with Graal Native Image for fast startup and low resource usage.
- Those same options needed as system properties too.
- Added
--no-keep-aliveand--no-lowercase-headersoptions to help with client compatibility.
- Issue with uhttpd GZIP compression means it is not enabled by default.
- Issue with home page templates if they contained script tags.
- Added ability to configure custom registry locations for groups (e.g. to allow Font Awesome kits). This is done through the
npm.<group>:registrysystem property. - Added ability to add authentication tokens on a per-host basis through the
auth.<host>:tokensystem property.
Npm2Mvn is currently under development.
- Locking for multi-user usage
- Configurable cache
- Cache misses

