且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用Maven将依赖项jar(无测试jar)复制到目录中?

更新时间:2022-01-31 01:04:45

尚不清楚是要排除具有test scope 的jar还是要测试相关的jar(test 分类器).无论哪种情况,都有 dependency:copy-的两个属性依赖项可以为您提供帮助.

It is not clear if you wanted to exclude jars with test scope or test related jars (test classifier). In either case, there are two properties of dependency:copy-dependencies which can help you.

  • excludeClassifiers 逗号分隔列表分类要排除的类别.空字符串表示不排除任何内容(默认).
  • excludeScope 排除范围.空字符串表示没有作用域(默认).
  • excludeClassifiers Comma Separated list of Classifiers to exclude. Empty String indicates don't exclude anything (default).
  • excludeScope Scope to exclude. An Empty string indicates no scopes (default).