欢迎访问我的个人网站==》 jiashubing.cn

maven命令行参数

-am,--also-make
If project list is specified, also build projects required by the list
如果指定了项目列表,还可以生成列表所需的项目

-amd,--also-make-dependents
If project list is specified, also build projects that depend on projects on the list
如果指定了项目列表,还可以生成依赖于列表上项目的项目

-B,--batch-mode
Run in non-interactive (batch) mode (disables output color)
如果指定了项目列表,还可以生成依赖于列表上项目的项目以非交互式(批处理)模式运行(禁用输出颜色)

-b,--builder <arg>
The id of the build strategy to use
要使用的生成策略的id

-C,--strict-checksums
Fail the build if checksums don't match
如果校验和不匹配,则生成失败

-c,--lax-checksums
Warn if checksums don't match
如果校验和不匹配,则发出警告

-cpu,--check-plugin-updates
Ineffective, only kept for backward compatibility
无效,仅为向后兼容而保留

-D,--define <arg>
Define a system property
定义系统特性

-e,--errors
Produce execution error messages
生成执行错误消息

-emp,--encrypt-master-password <arg>
Encrypt master security password
加密主安全密码

-ep,--encrypt-password <arg>
Encrypt server password
加密服务器密码

-f,--file <arg>
Force the use of an alternate POM file (or directory with pom.xml)
强制使用备用POM文件(或带有POM.xml的目录)

-fae,--fail-at-end
Only fail the build afterwards; allow all non-impacted builds to continue
只会在构建之后失败;允许所有未受影响的生成继续

-ff,--fail-fast
Stop at first failure in reactorized builds
在重新获取的生成中出现首次故障时停止

-fn,--fail-never
NEVER fail the build, regardless of project result
无论项目结果如何,都不要使构建失败

-gs,--global-settings <arg>
Alternate path for the global settings file
全局设置文件的备用路径

-gt,--global-toolchains <arg>
Alternate path for the global toolchains file
全局工具链文件的备用路径

-h,--help
Display help information
显示帮助信息

-l,--log-file <arg>
Log file where all build output will go (disables output color)
所有生成输出将转到的日志文件(禁用输出颜色)

-llr,--legacy-local-repository
Use Maven 2 Legacy Local Repository behaviour, ie no use of _remote.repositories. Can also be activated by using -Dmaven.legacyLocalRepo=true
使用Maven 2 Legacy Local Repository行为,即不使用_remote.repositories。也可以通过使用 -Dmaven.legacyLocalRepo=true

-N,--non-recursive
Do not recurse into sub-projects
不要重复到子项目中

-npr,--no-plugin-registry
Ineffective, only kept for backward compatibility
无效,仅为向后兼容而保留

-npu,--no-plugin-updates
Ineffective, only kept for backward compatibility
无效,仅为向后兼容而保留

-nsu,--no-snapshot-updates
Suppress SNAPSHOT updates
抑制SNAPSHOT更新

-ntp,--no-transfer-progress
Do not display transfer progress when downloading or uploading
下载或上传时不显示传输进度

-o,--offline
Work offline
脱机工作

-P,--activate-profiles <arg>
Comma-delimited list of profiles to activate
要激活的配置文件的逗号分隔列表

-pl,--projects <arg>
Comma-delimited list of specified reactor projects to build instead of all projects. A project can be specified by [groupId]:artifactId or by its relative path
要生成的指定反应堆项目(而不是所有项目)的逗号分隔列表。项目可以通过[groupId]:artifactId或其相对路径指定

-q,--quiet
Quiet output - only show errors
安静输出-只显示错误

-rf,--resume-from <arg>
Resume reactor from specified project
恢复指定项目的反应堆

-s,--settings <arg>
Alternate path for the user settings file
用户设置文件的备用路径

-t,--toolchains <arg>
Alternate path for the user toolchains file
用户工具链文件的备用路径

-T,--threads <arg>
Thread count, for instance 2.0C where C is core multiplied
线程数,例如2.0C,其中C是核心数的乘积

-U,--update-snapshots
Forces a check for missing releases and updated snapshots on remote repositories
强制检查远程存储库中丢失的版本和更新的快照

-up,--update-plugins
Ineffective, only kept for backward compatibility
无效,仅为向后兼容而保留

-v,--version
Display version information
显示版本信息

-V,--show-version
Display version information WITHOUT stopping build
在不停止生成的情况下显示版本信息

-X,--debug
Produce execution debug output
生成执行调试输出

posted @ 2023-12-20 15:56  贾树丙  阅读(51)  评论(0编辑  收藏  举报