-
Notifications
You must be signed in to change notification settings - Fork 40
Configuration
there are some configurations possible. either via yaml file in $HOME/.jbundlerrc and/or .jbundlerrc or via environment variables or via java system properties.
ENV | java property | config file | default value | example |
JBUNDLE_SKIP | jbundle.skip | skip | false | |
JBUNDLE_VERBOSE | jbundle.verbose | verbose | false | |
JBUNDLE_JARFILE | jbundle.jarfile | jarfile | Jarfile | |
BUNDLE_GEMFILE | bundle.gemfile | gemfile | Gemfile | |
JBUNDLE_OFFLINE | jbundle.offline | offline | false | |
JBUNDLE_LOCAL_REPOSITORY | jbundle.local.repository | local_repository | $HOME/.m2/repository | $HOME/.m2/jbundler_repo |
JBUNDLE_SETTINGS | jbundle.settings | settings | $HOME/.m2/settings.xml | settings.xml |
JBUNDLE_PROXY | jbundle.proxy | proxy | none | http://marvin:themanicdepressiverobot@localhost:3128 |
JBUNDLE_MIRROR | jbundle.mirror | mirror | none | http://localhost:8081/nexus/content/repositories/central |
BUNDLE_RUBYGEMS_MIRROR | bundle.rubygems.mirror | rubygems_mirror | none | http://localhost:8081/nexus/content/repositories/rubygems |
in case you run in an environment where Jarfile is handle by the environment then with the skip option you can tell JBundler to skip its work. jetty-run uses it and 'collects the jars via WEB-INF/lib' and tells JBundler that all jars are already in place.
verbose just adds some more output when running the jar resolution and downloading.
jarfile and gemfile just allows for customization of those files. the respective lock-files have a .lock attached to the given name.
bundler itself does not support to configure mirrors for rubygems.org or any other gems repository from your Gemfile.
the jbundle command will objey the global bundle mirror config and use that patched version of bundler. dito when you configured a rubygems_mirror with jbundler configuraton.
if you need other mirror then for rubygems.org then you need to use the bundle mirror configuration (see also nexus ruby plugin );
bundle config mirror.http://gemcutter.org http://localhost:8081/nexus/content/repostories/gems
the jbundler confguration is limited to single mirror for maven central and a single proxy. the proxy may carry username and password for authentication. for any more advanced mirror and proxy configuration you need to use the settings.xml from maven:
already working
- offline
- local-repository
some other parts of the settings.xml might already work (please submit an issue if not):
other parts are pending:
- use repositories from active profiles
- select active profile via jbundler config