mvn 打包命令

usage: mvn [options] [<goal(s)>] [<phase(s)>]

Options:

-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 如果指定了項目列表,也是 構(gòu)建依賴的項目列表上的項目

-B,--batch-mode? ? ? ? ? ? ? ? ? ? ? ????????????? Run in non-interactive (batch) mode (disables output color) 在非交互式(批處理)中運行模式(禁用輸出顏色)

-b,--builder <arg>?? ? ? ? ? ? ? ? ? ? ????????????The id of the build strategy to use 構(gòu)建策略的id使用

-C,--strict-checksums?? ? ? ? ? ? ?????????????Fail the build if checksums don't match 如果校驗和沒有,則構(gòu)建失敗比賽

-c,--lax-checksums? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Warn if checksums don't match 如果校驗和不匹配,則發(fā)出警告

-cpu,--check-plugin-updates? ? ? ? ? ? ? Ineffective, only kept for backward compatibility 無效,只保留向后兼容性

-D,--define <arg>? ? ? ? ? ? ? ? ? ? ? ????????????Define a system property 定義系統(tǒng)屬性

-e,--errors? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Produce execution error messages 生成執(zhí)行錯誤消息

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

-ep,--encrypt-password <arg>? ? ? ? ? ? ?Encrypt server password 加密服務(wù)器密碼

-f,--file <arg>? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Force the use of an alternate POM file (or directory with pom.xml) 強制使用備用POM? file(或帶有pom.xml的目錄)

-fae,--fail-at-end? ? ? ? ? ? ? ? ? ? ????????????????Only fail the build afterwards; allow all non-impacted builds to continue 之后只能使構(gòu)建失敗; 允許所有未受影響的構(gòu)建繼續(xù)

-ff,--fail-fast?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Stop at first failure in? reactorized builds 在第一次失敗時停止反應(yīng)堆建設(shè)

-fn,--fail-never? ? ? ? ? ? ? ? ? ? ? ???????????????? NEVER fail the build, regardless of project result 永遠(yuǎn)不要失敗,無論如何項目結(jié)果

-gs,--global-settings <arg>? ? ? ? ? ? ? ? ? Alternate path for the global settings file 全局的備用路徑設(shè)置文件

-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) 所有構(gòu)建輸出的日志文件將去(禁用輸出顏色)

-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 存儲庫行為,即沒有使用_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更新

-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 以逗號分隔的指定列表建設(shè)反應(yīng)堆項目所有項目。一個項目可以由[groupId]指定:artifactId 或者通過它的相對路徑

-q,--quiet?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Quiet output - only show errors 安靜輸出僅顯示錯誤

-rf,--resume-from <arg>?? ? ? ? ? ? ? ? ? ? Resume reactor from specified project 從指定的Resume reactor 項目

-s,--settings <arg>?? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Alternate path for the user settings file 用戶的備用路徑設(shè)置文件

-t,--toolchains <arg>? ? ? ? ? ?????????????????Alternate path for the user toolchains file? 用戶的備用路徑工具鏈文件

-T,--threads <arg>? ?? ? ? ? ? ? ????????????????Thread count, for instance 2.0C where C is core multiplied 線程計數(shù),例如2.0C 其中C是核心倍增

-U,--update-snapshots?? ? ? ?????????????????Forces a check for missing releases and updated snapshots on remote repositories 強制檢查是否缺失發(fā)布和更新快照遠(yuǎn)程存儲庫

-up,--update-plugins? ? ? ? ? ?????????????????Ineffective, only kept for backward compatibility 無效,只保留向后兼容性

-v,--version? ? ? ? ? ? ? ? ? ? ? ? ????? ???????????? Display version information 顯示版本信息

-V,--show-version? ? ? ? ? ? ? ? ? ?????????????Display version information WITHOUT stopping build? 顯示版本信息沒有停止構(gòu)建

-X,--debug?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ????????????Produce execution debug output 生成執(zhí)行調(diào)試輸出

這邊文章其實就是對英文做了中文解釋。

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

友情鏈接更多精彩內(nèi)容