报错信息:
[ERROR] Failed to execute goal on project cds-think-tanks-impl: Could not resolve dependencies for project com.orangecds:cds-think-tanks-impl:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at org.apache.phoenix:phoenix-core:jar:5.0.0-HBase-2.0 -> org.apache.hbase:hbase-mapreduce:jar:2.0.0 -> org.apache.hbase:hbase-server:jar:2.0.0 -> org.glassfish.web:javax.servlet.jsp:jar:2.3.2 -> org.glassfish:javax.el:jar :3.0.1-b06-SNAPSHOT: Failed to read artifact descriptor for org.glassfish:javax.el:jar :3.0.1-b06-SNAPSHOT: Could not transfer artifact org.glassfish:javax.el:pom:3.0.1-b06-SNAPSHOT from/to jvnet-nexus-snapshots (https://maven.java.net/content/repositories/snapshots): maven.java.net: Unknown host maven.java.net -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
|
有时后不是找不到 可能时jar 冲突,解绝方法如下:
1.清理 重新编译试试
2.pom:
<dependency> <groupId>org.apache.hive</groupId> <artifactId>hive-jdbc</artifactId> <exclusions> <exclusion> <groupId>org.glassfish</groupId> <artifactId>javax.el</artifactId> </exclusion> <exclusion> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-runner</artifactId> </exclusion> </exclusions> <version>3.1.2</version> </dependency>
|
说明:
exclusions是dependency的子标签。用于排除jar
用maven导包,jar包会把必要的jar包也一起导入进来。比如导入springmvc包。
springcore和springbean等包也就一起进来了。如果后面再自己主动加入其他版本的springcore包。就可能发生jar包冲突的问题