2011-03-17 42 views

回答

1

一種方法是運行:

mvn help:effective-pom 

會告訴你POM繼承和插值後已應用的項目。查看構建配置並確定相應的配置插件應該相當容易。

http://maven.apache.org/plugins/maven-help-plugin/effective-pom-mojo.html

+0

謝謝。雖然這有幫助,但有效的pom並不顯示特定階段的所有插件。例如,我可以看到maven-clean-plugin和maven-compiler-plugin,但是這並不能告訴我在「clean」階段執行哪一個。現在,我知道它將成爲「maven-clean-plugin」,但這在有效的pom xml中是不可見的。 – 2011-03-25 01:14:42