在使用maven 的过程中,发现几个有用的命令

本来我在寻找设置 dependency:copy-dependencies 的 output 路径(默认在 target/dependency)

百度了一下,搜索到了。不过我猜想, maven 命令行应该也可以检索到。

之前我使用过 maven help:describe, 但是不知道怎样让他显示出我要找的设置选项参数。

经过一番尝试,整理如下:

比如:

查看plugin的文档(列出所有的goals)

maven help:describe -Dplugin=dependency

查看plugin的文档(列出所有的goals 以及相应的参数)

maven help:describe -Dplugin=dependency -Ddetail

查看plugin 的goal 的文档 以及所有参数

maven help:describe -Dcmd=dependency:copy-dependencies -Ddetail

 

相关文章:

  • 2021-06-07
猜你喜欢
  • 2021-05-25
  • 2022-12-23
  • 2021-05-07
  • 2021-10-26
  • 2021-10-07
相关资源
相似解决方案