Grails 2.0.3 を使用しています。ではBuildConfig.groovy
、以下の除外があります。
dependencies {
runtime ('com.mycompany.apps.notification:client:1.2.1') {
excludes([ group: 'xom', name: 'xom' ])
}
}
私の依存関係ツリーは以下のようになります。 (maven2 を使用してツリーを作成)
[INFO] ------------------------------------------------------------------------
[INFO] [dependency:tree {execution: default-cli}]
[INFO] com.mycompany.apps.notification:notifytest:jar:0.0.1-SNAPSHOT
[INFO] \- com.mycompany.apps.notification:client:jar:1.2.1:compile
[INFO] \- com.mycompany.apps.notification:api:jar:1.2.1:compile
[INFO] \- com.mycompany.framework:platformservice.shared:jar:3.22.0:compile
[INFO] \- com.mycompany.framework:saml.res:jar:1.0.0:compile
[INFO] \- xom:xom:jar:1.1:compile
[INFO] +- xerces:xmlParserAPIs:jar:2.6.2:compile
[INFO] \- jaxen:jaxen:jar:1.1-beta-8:compile
[INFO] \- (xerces:xmlParserAPIs:jar:2.6.2:compile - omitted for duplicate)
[INFO] ------------------------------------------------------------------------
除外はツリーのレベル 4 まで正常に機能していますが、除外はレベル以下で無視されます。私の例では、除外は「com.mycompany.framework:platformservice.shared」まで機能しますが、「com.mycompany.framework:saml.res」以下では機能しません。
私はmaven 2.2を使用して同じことを試しましたが、上記のツリーのすべてのレベルで除外が機能します。より深いレベルで動作するように除外するために、grails にいくつかの構成がありませんか? それとも既知の問題ですか?