← Back to overview

General Options

ParameterShortDescriptionExample
--ci_mode-ciEnables CI (Continuous Integration) mode. Suppresses prompts and waits for user input.--ci_mode
--pom_file-pfSpecifies the path to the Maven POM file to process.--pom_file path/to/pom.xml
--find_artifact-faSearches for a specific artifact. Provide the artifact in groupId:artifactId:version format.--find_artifact com.example:lib:1.0
--config_file-cfgSpecifies a custom configuration file for the script.--config_file config.yml
--log_level-llSpecifies log level.--log_level debug

Cache Control

ParameterShortDescriptionExample
--cache_off-coDisables caching to force fresh dependency checks.--cache_off
--cache_file-cfSpecifies a custom path for the cache file (only for JSON backend).--cache_file cache.json
--cache_time-ctSpecifies the cache expiration time in seconds.--cache_time 1800
--cache_backend-cbSpecifies the cache backend to use (json, redis, tarantool, memcached).--cache_backend redis

Redis Cache Backend

ParameterShortDescriptionExample
--redis_host-rshRedis host (default: localhost).--redis_host redis
--redis_port-rspRedis port (default: 6379).--redis_port 6379
--redis_key-rskRedis key (default: maven_check_versions_cache).--redis_key mycache
--redis_user-rsuRedis username (optional).--redis_user user
--redis_password-rsupRedis password (optional).--redis_password pass

Tarantool Cache Backend

ParameterShortDescriptionExample
--tarantool_host-tlhTarantool host (default: localhost).--tarantool_host tarantool
--tarantool_port-tlpTarantool port (default: 3301).--tarantool_port 3301
--tarantool_space-tlsTarantool space (default: maven_check_versions_cache).--tarantool_space myspace
--tarantool_user-tluTarantool username (optional).--tarantool_user user
--tarantool_password-tlupTarantool password (optional).--tarantool_password pass

Memcached Cache Backend

ParameterShortDescriptionExample
--memcached_host-mchMemcached host (default: localhost).--memcached_host memcached
--memcached_port-mcpMemcached port (default: 11211).--memcached_port 11211
--memcached_key-mckMemcached key (default: maven_check_versions_cache).--memcached_key mycache

Logging Options

ParameterShortDescriptionExample
--logfile_off-lfoDisables logging to a file. Logs will only be shown in the terminal.--logfile_off
--log_file-lfSpecifies the path to a custom log file.--log_file my_log.log

Error Handling and Validation

ParameterShortDescriptionExample
--fail_mode-fmEnables "fail mode." The script will terminate if dependency versions exceed specified thresholds.--fail_mode
--fail_major-mjvSpecifies the major version difference threshold for failure.--fail_major 1
--fail_minor-mnvSpecifies the minor version difference threshold for failure.--fail_minor 2

Dependency Search and Processing

ParameterShortDescriptionExample
--search_plugins-spIncludes Maven plugins in the dependency search process.--search_plugins
--process_modules-smProcesses modules listed in the POM file.--process_modules
--show_skip-skLogs dependencies that are skipped.--show_skip
--show_search-ssLogs information about search actions.--show_search
--empty_version-evAllows processing of dependencies without a version specified.--empty_version
--show_invalid-siLogs information about invalid dependencies.--show_invalid

Performance Options

ParameterShortDescriptionExample
--threading-thEnables multi-threading to process dependencies and modules concurrently.--threading
--max_threads-mtSpecifies the maximum number of threads to use when threading is enabled.--max_threads 8

Authentication

ParameterShortDescriptionExample
--user-unSpecifies a username for basic authentication when accessing repositories.--user my_username
--password-upSpecifies a password for basic authentication when accessing repositories.--password my_password