scala를 webjars-play와 연동하다가 종종 중복 이슈가 발견이 되어서 자세히 중복 확인을 하고 싶었다.
자실 webjars-play 뿐 아니라 일반 scala 프로젝트를 사용할 때도 많은 도움이 된다.
https://github.com/sbt/sbt-duplicates-finder를 사용해.. 자세히 확인할 수 있다.
addSbtPlugin("org.scala-sbt" % "sbt-duplicates-finder" % "0.7.0")
$ sbt
[project name] $ checkDuplicates
[warn] Detected classes conflicts:
[warn]
[warn] - io/netty/handler/codec/string/LineSeparator.class: content differ
[warn] - /Users/samuel.kim/.ivy2/cache/io.netty/netty-codec/jars/netty-codec-4.1.9.Final.jar
[warn] - /Users/samuel.kim/.ivy2/cache/io.netty/netty-all/jars/netty-all-4.1.10.Final.jar
[warn]
[warn] - io/netty/util/internal/logging/InternalLoggerFactory.class: content differ
[warn] - /Users/samuel.kim/.ivy2/cache/io.netty/netty-common/jars/netty-common-4.1.9.Final.jar
[warn] - /Users/samuel.kim/.ivy2/cache/io.netty/netty-all/jars/netty-all-4.1.10.Final.jar
[warn]
[warn] - javax/servlet/SingleThreadModel.class: content differ
[warn] - /Users/samuel.kim/.ivy2/cache/org.mortbay.jetty/servlet-api-2.5/jars/servlet-api-2.5-6.1.14.jar
[warn] - /Users/samuel.kim/.ivy2/cache/javax.servlet/servlet-api/jars/servlet-api-2.5.jar
[warn]
하지만, https://github.com/coursier/coursier는 훨씬 자세히 보여준다.
$ sbt compile
[warn] Executing in batch mode.
[warn] For better performance, hit [ENTER] to switch to interactive mode, or
[warn] consider launching sbt without any commands, or explicitly passing 'shell'
[info] Loading project definition from /Users/samuel.kim/dev/ccc/kemi-logview/project
[info] Set current project to kemi-logview (in build file:/Users/samuel.kim/dev/ccc/kemi-logview/)
coursier.ResolutionException: Conflict(s) in dependency resolution:
org.webjars.npm:object-assign:3.0.0:default(compile)
org.webjars.npm:object-assign:4.0.1:default(compile)
org.webjars.npm:object-assign:4.1.1:default(compile)
[error] (*:coursierResolutions) coursier.ResolutionException: Conflict(s) in dependency resolution:
[error] org.webjars.npm:object-assign:3.0.0:default(compile)
[error] org.webjars.npm:object-assign:4.0.1:default(compile)
[error] org.webjars.npm:object-assign:4.1.1:default(compile)
[error] Total time: 8 s, completed 2017. 12. 22 오후 6:45:36
'scala' 카테고리의 다른 글
[scala-webjars] org.webjars.MultipleMatchesException: Multiple matches found for .. 해결하기 (0) | 2018.01.02 |
---|---|
[Spark] HadoopRDD / NewHadoopRDD (0) | 2017.12.25 |
sbt-reactjs의 graceful-readlink와 minimatch 이슈 (0) | 2017.12.14 |
[scala] play 2.6 with reactjs 예제 (1) | 2017.11.28 |
[scala] play framework 2.6에 reactjs 사용시 유의할 점 (0) | 2017.11.27 |