许多 maven 插件都有一个配置选项“skip”,它应该跳过插件的执行。似乎在命令行上设置这些选项没有效果:
[james@JAMES-PC ~/er]$ mvn clean test -Dpmd.skip=true -Dlicense.skip=true
[INFO] Scanning for projects...
... etc.etc.
[INFO]
[INFO] --- maven-license-plugin:1.4.0:check (check-headers) @ eranger ---
[INFO] Checking licenses...
[INFO]
[INFO] >>> maven-pmd-plugin:2.7.1:check (pmd-check) @ eranger >>>
[INFO]
[INFO] --- maven-pmd-plugin:2.7.1:pmd (pmd) @ eranger ---
[INFO]
[INFO] <<< maven-pmd-plugin:2.7.1:check (pmd-check) @ eranger <<<
[INFO]
[INFO] --- maven-pmd-plugin:2.7.1:check (pmd-check) @ eranger ---
... etc.etc.
pmd 和许可插件仍然被执行。任何想法如何真正跳过它们?