Maven的pox.xml文件中已经引入了Memcached客户端jar包,为什么还是找不到
我本地Maven编译通过了。
[WARNING] The POM for javax.xml.bind:jaxb-api:jar:2.2-promoted-b65 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ wyy-core ---
[INFO] Deleting /root/.jenkins/jobs/wyy-core/workspace/target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ wyy-core ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 45 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ wyy-core ---
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] com/wyy/snail/core/util/MemcachedUtils.java:[14,0] The import com.danga.MemCached cannot be resolved
[ERROR] com/wyy/snail/core/util/MemcachedUtils.java:[27,0] MemCachedClient cannot be resolved to a type
[ERROR] com/wyy/snail/core/util/MemcachedUtils.java:[29,0] cachedClient cannot be resolved
[ERROR] com/wyy/snail/core/util/MemcachedUtils.java:[30,0] cachedClient cannot be resolved
[ERROR] com/wyy/snail/core/util/MemcachedUtils.java:[30,0] MemCachedClient cannot be resolved to a type
[ERROR] com/wyy/snail/core/util/MemcachedUtils.java:[78,0] cachedClient cannot be resolved
[ERROR] com/wyy/snail/core/util/MemcachedUtils.java:[128,0] cachedClient cannot be resolved
[ERROR] com/wyy/snail/core/util/MemcachedUtils.java:[178,0] cachedClient cannot be resolved
[ERROR] com/wyy/snail/core/util/MemcachedUtils.java:[195,0] cachedClient cannot be resolved
[ERROR] com/wyy/snail/core/util/MemcachedUtils.java:[238,0] cachedClient cannot be resolved
[ERROR] com/wyy/snail/core/util/MemcachedUtils.java:[253,0] cachedClient cannot be resolved
2 个解决方案
#1
jar包冲突会报这种错吗?
#2
自己顶一下
#1
jar包冲突会报这种错吗?
#2
自己顶一下