Skip to content

sshtools/npm2mvn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM 2 Maven

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.

Status

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.

Changes

0.9.4

  • Those same options needed as system properties too.

0.9.3

  • Added --no-keep-alive and --no-lowercase-headers options to help with client compatibility.

0.9.2

  • Issue with uhttpd GZIP compression means it is not enabled by default.

0.9.1

  • Issue with home page templates if they contained script tags.

0.9.0

  • Added ability to configure custom registry locations for groups (e.g. to allow Font Awesome kits). This is done through the npm.<group>:registry system property.
  • Added ability to add authentication tokens on a per-host basis through the auth.<host>:token system property.

TODO

Npm2Mvn is currently under development.

  • Locking for multi-user usage
  • Configurable cache
  • Cache misses

About

Npm to Maven proxy. Turns Npm packages into Maven artifacts for inclusion in Java projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published