Maven. Transitive dependencies

后端 未结 4 1948
时光说笑
时光说笑 2020-12-14 06:33

My project P depends on dependency A which depends on dependency B. My project\'s pom.xml file includes A as a dependency, and its jar is included in P\'s classpath. Howev

4条回答
  •  悲&欢浪女
    2020-12-14 07:01

    I'm writing my own solution/situation since none of the other answers solved my problem.

    In my case, my project (ME) was dependant on another project (LIB) which was dependant on another project (open-csv).

    However, I noticed an older version of open-csv is already a dependency in my project, and probably this force the second library (LIB) use this older version of open-csv library, which does not contain a newer class used by LIB.

    I solved the issue by updating the version of open-csv in my main project dependency list.

提交回复
热议问题