Error Messages:
[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 |
Solution:
1. Re-compile
2. pom:
< dependency> < groupId> org. Apache. hive < artifactId> hive-jdbc < exclusions> < exclusion> < groupId> org. glassfish < artifactId> javax. el < exclusion> < version> 3.1.2 |
Note:
exclusions is a sub-tag of dependence. To exclude jars
-maven import packages, jar packages import the necessary jar packages as well. For example, importing the springmvc package.
springcore and springbean and other packages will also come in together. If you take the initiative to add other versions of springcore package. There may be a jar conflict problem
Similar Posts:
- SLF4J: Detected both log4j-over-slf4j.jar AND bound slf4j-log4j12.jar on the class path
- Factory method ‘eurekaClient’ threw exception; nested exception is java.lang.RuntimeException: Failed to initialize DiscoveryClient!
- [Solved] java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUni
- java.lang.NoClassDefFoundError: Could not initialize class org.apache.log4j.Log4jLoggerFactory
- ERROR in ch.qos.logback.core.joran.spi.Interpreter@73:41 – no applicable action for [AppenderRef], current ElementPath is [[Configuration][Loggers][Root][AppenderRef]]
- [Solved] SpringBoot Access Redis Error: java.lang.NoSuchMethodError: redis.clients.jedis.JedisPoolConfig.setMinEvictableIdleTime
- [Solved] Maven install failed (package com.google.gson does not exist)
- [Solved] Jsonobject has no from object, idea has no Maven dependency, jsonobject Maven dependency package
- [Exception] LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either r…
- How to Solve compile error: package junit.framework does not exist