关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、3102411850 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 11523|回复: 5

[环境搭建] Maven install 失败

[复制链接]
发表于 2016-7-19 11:43:40 | 显示全部楼层 |阅读模式
[INFO] Scanning for projects...
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building jeecg 3.6.4
[INFO] ------------------------------------------------------------------------
[INFO] Downloading: http://maven.jeecg.org/nexus/con ... /maven-metadata.xml
[INFO] Downloading: https://oss.sonatype.org/content ... /maven-metadata.xml
[INFO] Downloaded: http://maven.jeecg.org/nexus/con ... /maven-metadata.xml (774 B at 1.3 KB/sec)
[INFO] Downloading: http://maven.jeecg.org/nexus/con ... 160713.083428-7.pom
[INFO] Downloaded: http://maven.jeecg.org/nexus/con ... 160713.083428-7.pom (4 KB at 13.1 KB/sec)
[WARNING] The POM for org.jeecgframework:codegenerate:jar:3.6-20160713.083428-7 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] Downloading: https://oss.sonatype.org/content ... /maven-metadata.xml
[INFO] Downloading: http://maven.jeecg.org/nexus/con ... /maven-metadata.xml
[INFO] Downloaded: http://maven.jeecg.org/nexus/con ... /maven-metadata.xml (772 B at 3.0 KB/sec)
[INFO] Downloading: http://maven.jeecg.org/nexus/con ... /maven-metadata.xml
[INFO] Downloading: https://oss.sonatype.org/content ... /maven-metadata.xml
[INFO] Downloading: http://maven.jeecg.org/nexus/con ... /maven-metadata.xml
[INFO] Downloading: http://repo.maven.apache.org/mav ... /maven-metadata.xml
[INFO] Downloading: http://files.couchbase.com/maven ... /maven-metadata.xml
[INFO] Downloading: https://xerces.apache.org/xerces ... /maven-metadata.xml
[INFO] Downloaded: http://repo.maven.apache.org/mav ... /maven-metadata.xml (627 B at 0.6 KB/sec)
[INFO] Downloading: http://proxool.cvs.sourceforge.n ... /maven-metadata.xml
[INFO] Downloading: http://maven.jeecg.org/nexus/con ... /maven-metadata.xml
[INFO] Downloading: https://oss.sonatype.org/content ... /maven-metadata.xml
[INFO] Downloaded: http://maven.jeecg.org/nexus/con ... /maven-metadata.xml (775 B at 2.5 KB/sec)
[INFO] Downloading: https://oss.sonatype.org/content ... /maven-metadata.xml
[INFO] Downloading: http://maven.jeecg.org/nexus/con ... /maven-metadata.xml
[INFO] Downloaded: http://maven.jeecg.org/nexus/con ... /maven-metadata.xml (770 B at 2.8 KB/sec)
[INFO] Downloading: http://maven.jeecg.org/nexus/con ... /maven-metadata.xml
[INFO] Downloading: https://oss.sonatype.org/content ... /maven-metadata.xml
[INFO] Downloaded: http://maven.jeecg.org/nexus/con ... /maven-metadata.xml (770 B at 3.0 KB/sec)
[INFO] Downloading: http://maven.jeecg.org/nexus/con ... 160713.083428-7.jar
[INFO] Downloading: http://maven.jeecg.org/nexus/con ... 60707.040238-12.jar
[INFO] Downloaded: http://maven.jeecg.org/nexus/con ... 60707.040238-12.jar (111 KB at 292.7 KB/sec)
[INFO] Downloaded: http://maven.jeecg.org/nexus/con ... 160713.083428-7.jar (82 KB at 178.9 KB/sec)
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jeecg ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 37 resources
[INFO] Copying 242 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ jeecg ---
[INFO] Compiling 598 source files to D:\develop\jeecg\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \develop\jeecg\src\main\java\org\jeecgframework\core\junit\AbstractUnitTest.java:[4,39] 错误: 程序包org.springframework.test.context不存在
[ERROR] \develop\jeecg\src\main\java\org\jeecgframework\core\junit\AbstractUnitTest.java:[5,46] 错误: 程序包org.springframework.test.context.junit4不存在
[ERROR] \develop\jeecg\src\main\java\org\jeecgframework\core\junit\AbstractUnitTest.java:[6,43] 错误: 程序包org.springframework.test.context.web不存在
[ERROR] \develop\jeecg\src\main\java\org\jeecgframework\core\junit\AbstractUnitTest.java:[15,1] 错误: 找不到符号
[ERROR] \develop\jeecg\src\main\java\org\jeecgframework\core\junit\AbstractUnitTest.java:[16,1] 错误: 找不到符号
[ERROR] \develop\jeecg\src\main\java\org\jeecgframework\core\junit\AbstractUnitTest.java:[14,9] 错误: 找不到符号
[INFO] 6 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33.124 s
[INFO] Finished at: 2016-07-19T11:09:08+08:00
[INFO] Final Memory: 32M/251M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project jeecg: Compilation failure: Compilation failure:
[ERROR] \develop\jeecg\src\main\java\org\jeecgframework\core\junit\AbstractUnitTest.java:[4,39] 错误: 程序包org.springframework.test.context不存在
[ERROR] \develop\jeecg\src\main\java\org\jeecgframework\core\junit\AbstractUnitTest.java:[5,46] 错误: 程序包org.springframework.test.context.junit4不存在
[ERROR] \develop\jeecg\src\main\java\org\jeecgframework\core\junit\AbstractUnitTest.java:[6,43] 错误: 程序包org.springframework.test.context.web不存在
[ERROR] \develop\jeecg\src\main\java\org\jeecgframework\core\junit\AbstractUnitTest.java:[15,1] 错误: 找不到符号
[ERROR] \develop\jeecg\src\main\java\org\jeecgframework\core\junit\AbstractUnitTest.java:[16,1] 错误: 找不到符号
[ERROR] \develop\jeecg\src\main\java\org\jeecgframework\core\junit\AbstractUnitTest.java:[14,9] 错误: 找不到符号
[ERROR] -> [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/confluen ... ojoFailureException


发表于 2016-7-19 14:05:11 | 显示全部楼层
maven不熟悉的话,用非maven版本
http://git.oschina.net/jeecg/jeecg-no_maven
 楼主| 发表于 2016-7-19 14:40:36 | 显示全部楼层
不是maven熟不熟悉的问题   用Maven update Project就没肝什么问题了,是你们的工程有点问题
发表于 2016-7-19 17:06:01 | 显示全部楼层
我把org.jeecgframework.core.junit这个包删掉了,终于可以编译成功了你试试
 楼主| 发表于 2016-7-19 18:03:27 | 显示全部楼层
我是用了这个方法成功了

右键maven update project 然后重新改设置,我有时候能跑成功。不行就重装下再试吧。记得把validation得取消了。具体原因我也不清楚。。
 楼主| 发表于 2016-12-5 10:37:58 | 显示全部楼层
确实用5#的方法maven install成功了
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表