导入maven项目,jar包下载不成功的问题
导入一个maven项目,有3个包怎么都下载不下来 --项目出现感叹号,pom.xml 文件报错。
试了update project 几次无果。
又试了 网上说的 根目录下 执行:mvn dependency:copy-dependencies 命令
报错:
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building spring-shiro-training Maven Webapp 1.0
[INFO] ------------------------------------------------------------------------
[INFO] Downloading: http://repo.maven.apache.org/maven2/org/mybatis/mybatis/3.2.7/mybatis-3.2.7.jar
[INFO] Downloading: http://repo.maven.apache.org/maven2/org/springframework/spring-beans/3.2.9.RELEASE/spring-beans-3.2.9.RELEASE.jar
[INFO] Downloading: http://repo.maven.apache.org/maven2/mysql/mysql-connector-java/5.1.22/mysql-connector-java-5.1.22.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22.412 s
[INFO] Finished at: 2016-02-15T16:40:12+08:00
[INFO] Final Memory: 9M/154M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project spring-shiro-training: Could not resolve dependencies for project com.wangzhixuan:spring-shiro-training:war:1.0: The following artifacts could not be resolved: org.springframework:spring-beans
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
贴出来了,就这三个包 。 帮忙看看
回复
抱歉,回复晚了。不知道现在有没有解决?从贴出来的pom文件中可以看出来spring-beans和mysql驱动这两个dependency还是有问题没有解决的,不知道是什么错误呢?