我尝试使用maven构建zookeeper项目环境来测试eclipse上的DistributedLock,这里是pom.xml,但是出了点问题 提示:
无法转移org.apache.curator:来自https://repo.maven.apache.org/maven2的curator-client:jar:4.0.0被缓存在本地存储库中,在中心的更新间隔过去之前不会重新尝试解析或强制更新。 我不知道这意味着什么 我试过这个http://curator.apache.org/zk-compatibility.html,但它不起作用。 谁能知道如何解决它? http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0
<groupId>Day0105ZK</groupId>
<artifactId>Day0105ZK</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Day0105ZK</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-framework</artifactId>
<version>4.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-recipes</artifactId>
<version>4.0.0</version>
</dependency>
<!-- something wrong on this dependency -->
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-client</artifactId>
<version>4.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>3.4.6</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>16.0.1</version>
</dependency>
</dependencies>
</project>