【问题标题】:How to provide version for provided transitive dependencies in sbt?如何为 sbt 中提供的传递依赖提供版本?
【发布时间】:2019-08-12 16:09:47
【问题描述】:

[error] (*:update) sbt.ResolveException: unresolved dependency: com.atlassian.sal#sal-api;${sal.version}: not found

[error] unresolved dependency: com.atlassian.event#atlassian-event;${event.version}: not found

任何方式为提供的传递依赖提供版本?

当您尝试添加 https://mvnrepository.com/artifact/com.atlassian.jira/jira-rest-java-client-core?repo=atlassian-public 依赖项并编译项目时,它可以在任何 playframework 应用程序中轻松重现。

https://github.com/sanjeevpande/play-jira-client 带有示例播放应用程序的存储库。 “play compile”会报错。

【问题讨论】:

    标签: playframework sbt jira jira-rest-api jira-rest-java-api


    【解决方案1】:

    我设法通过在 build.sbt 中添加 notTransitive() 属性来修复它

    "com.atlassian.jira" % "jira-rest-java-client-core" % "5.1.0" notTransitive(),

    并通过手动添加传递依赖项。

    【讨论】:

      猜你喜欢
      • 2016-03-05
      • 2013-11-07
      • 2013-05-22
      • 2017-01-15
      • 2018-05-19
      • 1970-01-01
      • 2022-01-17
      • 2016-03-21
      • 2016-04-26
      相关资源
      最近更新 更多