【问题标题】:spring-social 1.1.0.RELEASE pulling in snapshot dependenciesspring-social 1.1.0.RELEASE 引入快照依赖项
【发布时间】:2014-09-13 20:50:49
【问题描述】:

尝试从 spring-social-twitter 1.1.0.M4 升级到 1.1.0.RELEASE。 RELEASE 版本在 Maven 构建期间引入了多个快照依赖项。 1.1.0.M4 不会发生这种情况。

Downloading: org/springframework/social/spring-social-config/1.1.0.BUILD-SNAPSHOT/maven-metadata.xml Downloading: org/springframework/social/spring-social-core/1.1.0.BUILD-SNAPSHOT/maven-metadata.xml Downloading: org/springframework/social/spring-social-web/1.1.0.BUILD-SNAPSHOT/maven-metadata.xml

如何避免这种情况?

【问题讨论】:

    标签: spring-social


    【解决方案1】:

    这是 Spring Social Facebook 1.1.0.RELEASE 的问题(这就是为什么有 Spring Social Facebook 1.1.1.RELEASE 来解决这个问题的原因)。但这不应该是 Spring Social Twitter 1.1.0.RELEASE 的问题。事实上,我刚刚在http://central.maven.org/maven2/org/springframework/social/spring-social-twitter/1.1.0.RELEASE/spring-social-twitter-1.1.0.RELEASE.pom 上查看了 Spring Social Twitter 1.1.0.RELEASE 的 POM,很明显它传递依赖于 Spring Social Core/Config/Security 1.1.0.RELEASE。

    而且你说spring-social-web 1.1.0.BUILD-SNAPSHOT被拉进来了,Spring Social Twitter根本不依赖spring-social-web,所以不是问题。

    您是否也有 Spring Social Facebook 1.1.0.RELEASE 作为依赖项?如果是这样,请尝试 Spring Social Facebook 1.1.1.RELEASE 看看是否能解决您的问题。

    【讨论】:

    • 抱歉,我们确实也在使用 spring social facebook 1.1.0.RELEASE。按照建议更改为 1.1.1.RELEASE,现在一切都很好(事实上,我们为 twitter 和 facebook 的 spring 社交工件提供了相同的版本,将来会更加小心)
    • 不用担心。很高兴听到你让它工作了。请注意,尽管 Spring Social 项目在版本号方面似乎彼此密切相关,但它们是独立版本的,因此每个项目都可以对其目标 API 中的错误或更改做出反应,而无需在所有 Spring Social 项目中发布。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-02-22
    • 1970-01-01
    • 2021-02-16
    • 1970-01-01
    相关资源
    最近更新 更多