1
許多Maven插件都有一個配置選項「skip」,它應該跳過插件的執行。看起來好像在命令行上設置這些選項沒有任何影響:mvn -Dxy.skip = true不起作用
[[email protected] ~/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和許可證插件仍然執行。任何想法如何真正跳過它們?
但這種許可協議插件如仍然檢查所有文件。運行mvn -Dlicense.skip = true -X時,可以看到類似「[DEBUG] Header OK:C:\ some \ file.java」的調試日誌。 – James
哪個插件是那個?請發佈主頁的URL。 –
這就是[maven-license-plugin](http://code.google.com/p/maven-license-plugin/wiki/Configuration) – James