maven - Provided transitive dependencies not being listed -
i have 2 projects, when list dependencies of first get:
[info] com.onespatial.gothic:gothic-java:jar:5.16 [info] +- com.onespatial.tools.gde:gde-cfg:zip:5.16:provided [info] +- com.onespatial.gothic:gothic-w32:jar:5.16:compile [info] \- com.onespatial.gothic:gothic-lx86_64:jar:5.16:compile
which correct. gde-cfg provided. when list dependencies of second project, includes above project, get:
[info] +- com.onespatial.radius.studio:rswebmapservice:jar:classes:2.3.4-build-7-snapshot:compile [info] | +- com.onespatial.gothic:gothic-java:jar:5.16:compile [info] | +- com.onespatial.gothic:gothic-lx86_64:jar:5.16:compile [info] | +- com.onespatial.gothic:gothic-w32:jar:5.16:compile
the transitive dependency of gothic-java not appearing in tree (or when use dependency:list). can explain why gde-cfg not being listed above.
as described in maven docs, transitive provided dependencies not added dependency tree. there bug report 2006, no progress since.
you meant declare dependencies using in project, in sense if using classes gde-cfg, should declare in dependencies, unrelated whether there transitive dependency on it.
the case can think of dependency necessary without not using classes gde-cfg, if extending class/interface gothic-java, , class/interface extends class/interface gde-cfg. in case class/interface have present @ compile time, not in maven’s current behaviour. workaround manually add provided dependency gde-cfg project.
Comments
Post a Comment