我正在尝试在我的春季启动项目pom.xml中添加以下hazelcast maven依赖项,但这是说找不到依赖项。
<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的链接
有人可以帮我吗?
答案 0 :(得分:0)
如果出现以下问题
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()
}
}