【问题标题】:hazelcast maven dependencies not found in my project?在我的项目中找不到 hazelcast maven 依赖项?
【发布时间】:2019-07-07 14:58:33
【问题描述】:

我正在尝试将 hazelcast maven 依赖项添加到我的 spring boot 项目 pom.xml 中,但它说没有找到依赖项。

<dependency>
            <groupId>com.hazelcast</groupId>
            <artifactId>hazelcast</artifactId>
            <version>3.7.5</version>
        </dependency>

<dependency>
    <groupId>com.hazelcast</groupId>
    <artifactId>hazelcast-hibernate5</artifactId>
    <version>1.2</version>
</dependency>

但是我的 pom.xml 抱怨通过突出显示版本号找不到那些依赖项

here我完整的 pom.xml 的链接

谁能帮我解决这个问题。

【问题讨论】:

  • 查看 maven central 那些似乎不是这些库的 最新 版本,但它们是有效的现有版本。
  • 您的网络中有一些代理设置吗?您是否想通过代理让他们进入公司办公室?
  • 我完全尝试了您的依赖项,它工作正常,所以它一定与您的网络或 Maven Central 存储库配置有关。

标签: spring hibernate maven spring-boot hazelcast


【解决方案1】:

如果出现以下问题


Could not resolve com.hazelcast:hazelcast-enterprise-all:4.1.1.
         > Could not get resource 'https://dl.bintray.com/hazelcast/release/com/hazelcast/hazelcast-enterprise-all/4.1.1/hazelcast-enterprise-all-4.1.1.pom'.
            > Could not GET 'https://dl.bintray.com/hazelcast/release/com/hazelcast/hazelcast-enterprise-all/4.1.1/hazelcast-enterprise-all-4.1.1.pom'. Received status code 403 from server: Forbidden

Could not resolve com.hazelcast:hazelcast-enterprise-all:4.1.1.
         > Could not get resource 'https://mvnrepository.com/artifact/com/hazelcast/hazelcast-enterprise-all/4.1.1/hazelcast-enterprise-all-4.1.1.pom'.
            > Could not GET 'https://mvnrepository.com/artifact/com/hazelcast/hazelcast-enterprise-all/4.1.1/hazelcast-enterprise-all-4.1.1.pom'. Received status code 403 from server: Forbidden

通过添加存储库 URL 解决

build.gradle.kts

repositories {
   maven(url = "https://repository.hazelcast.com/release/")
}

maven {
   setUrl("https://repository.hazelcast.com/release")
   metadataSources {
        mavenPom()
        artifact()
   }
}

Ref

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-02-21
    • 1970-01-01
    • 2016-10-01
    • 2020-04-18
    • 1970-01-01
    相关资源
    最近更新 更多