0
在插件POM,有如下定義的屬性:如何覆蓋pom的插件屬性?
<project
...
<properties>
<jruby.version>1.6.8</jruby.version>
</properties>
我想覆蓋在我的項目的POM,物業(定義爲「1.7.0」)。
一些額外的信息,可能是有用的:
在插件的POM,這個屬性被用於:
一)指定的依賴版本(我知道如何重寫 - 看到http://blog.sonatype.com/2008/04/how-to-override-a-plugins-dependency-in-maven/
二)指定一個插件的目標配置(不知道如何重寫)
這可能嗎?
謝謝。根據POM Reference, Plugins試
不,這是行不通的,因爲我需要改寫的屬性是用戶定義的屬性([鏈接] http://books.sonatype.com /mvnref-book/reference/resource-filtering-sect-properties.html#resource-filtering-sect-user-defined),你建議的方法是爲插件Mojo可能期望的屬性(這些是getter和setter在Java Mojo bean) – Mariana 2014-10-06 16:03:52