自己定义了phoenix4.6-client的依赖关系POM,如下:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><groupId>com.it.org.apache.phoenix</groupId><artifactId>phoenix-client-without-hbase</artifactId><version>4.6.0</version><description>POM was created by Sonatype Nexus</description><dependencies><dependency><groupId>com.it.org.apache.hadoop</groupId><artifactId>hadoop-auth</artifactId><version>2.5.1</version></dependency><dependency><groupId>com.it.org.apache.hadoop</groupId><artifactId>hadoop-client</artifactId><version>2.5.1</version></dependency><dependency><groupId>com.it.org.apache.hadoop</groupId><artifactId>hadoop-common</artifactId><version>2.5.1</version></dependency><dependency><groupId>com.it.org.apache.hbase</groupId><artifactId>hbase-client</artifactId><version>1.1.2</version></dependency><dependency><groupId>com.it.org.apache.hbase</groupId><artifactId>hbase-common</artifactId><version>1.1.2</version></dependency><dependency><groupId>com.it.org.apache.hbase</groupId><artifactId>hbase-protocol</artifactId><version>1.1.2</version></dependency><dependency><groupId>com.it.org.apache.hbase</groupId><artifactId>hbase-server</artifactId><version>1.1.2</version></dependency><dependency><groupId>com.it.org.apache.htrace</groupId><artifactId>htrace-core-incubating</artifactId><version>3.1.0</version></dependency><dependency><groupId>com.it.IO</groupId><artifactId>netty</artifactId><version>4.0.23</version></dependency></dependencies></project>
只有 htrace-core-incubating 这个 cartifactId 不能正确下载。在本地仓库中也出现了网上说的.lastUpdated文件,
网上说只要删除掉就可以重新正确下载,试了并没有效果。奇怪的是单独用这个依赖关系是可以正确下载的。
如下:
<dependency><groupId>com.it.org.apache.htrace</groupId><artifactId>htrace-core-incubating</artifactId><version>3.1.0</version><type>pom</type></dependency>
这个问题困扰了很久,试了很多种方法都没有结果。
偶然发现了这个jar包文件名和pom文件名有些不同。如下:
改成 这个试试,删除nexus中htrace配置,重新上面本地的pom和jar。
结果成功了!!!