首页 > 其他分享 >maven命令行参数

maven命令行参数

时间:2023-12-20 16:00:57浏览次数:25  
标签:命令行 -- list 生成 maven 参数 build file projects

-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
生成执行调试输出

标签:命令行,--,list,生成,maven,参数,build,file,projects
From: https://www.cnblogs.com/acm-bingzi/p/maven_param.html

相关文章

  • IDEA启动maven项目,禁止下载jar包
    问题IDEA启动maven项目,每次启动都自动去远程仓库拉jar包,很慢,还会报错,比如下面这样[WARNING]Couldnottransfermetadataxxxxxx-SNAPSHOT/maven-metadata.xmlfrom/topublicxxxxx:Transferfailedforxxxxxxx-SNAPSHOT/maven-metadata.xml解决1、maven命令......
  • eclipse新建Maven项目卡33%以及新建项目wadapp报错
    eclipse新建Maven项目时明明配置都改了,但是一直卡在33%不动的原因是因为有些eclipse的版本需要你输入Y才开始新建项目如图所示输入Y就可以啦新建项目报错参考连接eclipse新建项目报错:Thesuperclass“javax.servlet.http.HttpServlet“wasnotfoundontheJavaBuildPath......
  • 批量修改maven版本号脚本
    #!/bin/bashls|grep-vsh|whilereadlinedocd$lineecho$lineecho"开始"gitcheckoutdev-20241001-01find-namepom.xml|xargs-ised-i's/1.0.0-TMP-APSTACK-SNAPSHOT/DEV-0......
  • Python 使用getopt解析命令行参数
    ​ 1、getopt模块此模块可协助脚本解析sys.argv中的命令行参数。它支持与Unixgetopt()函数相同的惯例(包括形式如'-'与'--'的参数的特殊含义)。也能通过可选的第三个参数来使用与GNU软件所支持形式相类似的长选项。1)getopt.getopt(args,shortopts,longopts=[])......
  • HDFS命令行操作
    HDFS的命令行操作很多,但是常用的也就那么几个,现在就总结一下吧:HDFS的常用命令:hadoopfs-ls/查看hdfs根目录hadoopfs-put源文件目标地址将本地文件存储到hdfs目标地址hadoopfs-cp源目标拷贝源到目标hadoopfs-copyFromLocalhadoopfs-moveFro......
  • Nacos配置:发布失败,请检查参数是否正确
    一、表象:页面1:报错1:caused:PreparedStatementCallback;badSQLgrammar[SELECTid,data_id,group_id,tenant_id,app_name,content,md5,gmt_create,gmt_modified,src_user,src_ip,c_desc,c_use,effect,type,c_schema,encrypted_data_keyFROMconfig_infoWHEREdata_id......
  • C++基础 -9- 函数的默认参数
     ———————函数的默认参数——————— ......
  • go服务get请求中携带分号(;)时报错,获取不到参数的问题
    前言我们在写get方式的api请求时,有时候会用这样的一种方式携带参数:http://ip:port/a/b?query=key:1;value:2&other=xxx,这里我们注意到query一个字段其实是携带了等子字段的,一个是key,一个是value;这在go1.17版本之前是没有问题的。但是在1.17之后打印警告,在1.20之后,go服务......
  • 关于把long类型的参数直接传到xml中当sql查询的参数非常慢这件事
    起初,有一张表超级大想要将表复制下来如果查出来list再去复制这将非常慢,听了同事的建议使用了insertinto(select*fromtable)速度得到了显著改善。可是我写代码的时候,再调用接口的时候发现足足有15s,而navicat执行sql语句只有400ms,感觉哪里出了问题但还不知道,最终经过同事的明......
  • 高性能Mixtral:467亿参数MoE技术,逼近GPT-3.5与GPT-4
    模型简介近日,MistralAI团队发布了全新的大型语言模型——Mixtral8x7B。这款以稀疏专家混合模型(SparseMixture-of-Experts,简称SMoE)为基础的语言模型,拥有467亿个参数,是当前市场上最强大的开源权重模型之一。不仅如此,Mixtral8x7B还在Apache2.0许可下开源,为开发者社区提供了一个全......