Override transitive dependency - Maven -
below dependency project
[info] | +- jasperreports:jasperreports:jar:3.1.4:compile [info] | | +- commons-beanutils:commons-beanutils:jar:1.7.0:compile [info] | | +- commons-collections:commons-collections:jar:3.2.1:compile [info] | | +- commons-digester:commons-digester:jar:1.8:compile [info] | | +- com.lowagie:itext:jar:2.1.0:compile [info] | | +- jfree:jcommon:jar:1.0.15:compile [info] | | +- jfree:jfreechart:jar:1.0.12:compile [info] | | +- xml-apis:xml-apis:jar:1.3.02:compile
how can override jasperreports include xml-apis:xml-apis:jar:1.3.04? see exclude not interested in not want exclude xml-apis.
so syntax override transitive dependency?
i tried following , worked
- in parent pom
<properties> <!-- xml apis --> <xml-apis.version>1.3.04</xml-apis.version> </properties> <dependencymanagement> <dependency> <groupid>xml-apis</groupid> <artifactid>xml-apis</artifactid> <version>${xml-apis.version}</version> </dependency> </dependencymanagement>
- in project pom
<dependency> <groupid>jasperreports</groupid> <artifactid>jasperreports</artifactid> <version>3.1.4</version> </dependency> <dependency> <groupid>xml-apis</groupid> <artifactid>xml-apis</artifactid> </dependency>
Comments
Post a Comment