qq_24534807 2017-07-03 08:03 采纳率: 0%
浏览 1419

Maven install 时报错!!!

 [INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] Ticketing
[INFO] Ticketing Domain
[INFO] Ticketing Service Interface
[INFO] Ticketing DAO Interface
[INFO] Ticketing DAO Ibatis Implementation
[INFO] Ticketing Service Implementation
[INFO] Ticketing Web Application
[INFO] 
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Ticketing 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ ticketing ---
[INFO] Installing G:\EclipseLunaWorkspace\Ticketing\pom.xml to C:\Users\80883846\.m2\repository\com\hkt\engineering\oneoss\ticketing\1.0-SNAPSHOT\ticketing-1.0-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Ticketing Domain 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for net.sf.ehcache:ehcache:jar:1.4.1 is missing, no dependency information available
[WARNING] The POM for org.springframework:spring-test:jar:2.5.6 is missing, no dependency information available
[WARNING] The POM for org.springframework:spring-jdbc:jar:2.5.6 is missing, no dependency information available
[WARNING] The POM for org.springframework:spring-orm:jar:2.5.6 is missing, no dependency information available
[WARNING] The POM for org.springframework:spring-aop:jar:2.5.6 is missing, no dependency information available
[WARNING] The POM for org.springframework:spring-aspects:jar:2.5.6 is missing, no dependency information available
[WARNING] The POM for org.springframework:spring-context-support:jar:2.5.6 is missing, no dependency information available
[WARNING] The POM for org.springframework:spring-webmvc:jar:2.5.6 is missing, no dependency information available
[WARNING] The POM for com.oracle:classes12:jar:10.2.0.2.0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Ticketing ......................................... SUCCESS [  0.282 s]
[INFO] Ticketing Domain .................................. FAILURE [  0.490 s]
[INFO] Ticketing Service Interface ....................... SKIPPED
[INFO] Ticketing DAO Interface ........................... SKIPPED
[INFO] Ticketing DAO Ibatis Implementation ............... SKIPPED
[INFO] Ticketing Service Implementation .................. SKIPPED
[INFO] Ticketing Web Application ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.878 s
[INFO] Finished at: 2017-07-03T16:02:15+08:00
[INFO] Final Memory: 7M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project domain: Could not resolve dependencies for project com.hkt.engineering.oneoss:domain:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: org.springframework:spring-test:jar:2.5.6, org.springframework:spring-jdbc:jar:2.5.6, org.springframework:spring-orm:jar:2.5.6, org.springframework:spring-aop:jar:2.5.6, org.springframework:spring-aspects:jar:2.5.6, org.springframework:spring-context-support:jar:2.5.6, org.springframework:spring-webmvc:jar:2.5.6, org.springframework:spring-context:jar:2.0.8, org.springframework:spring-dao:jar:2.0.8, org.springframework:spring-beans:jar:2.0.8, org.springframework:spring-core:jar:2.0.8, com.oracle:classes12:jar:10.2.0.2.0: Failure to find org.springframework:spring-test:jar:2.5.6 in http://10.252.15.160:28081/nexus/repository/maven-public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :domain

下载了对应jar包,放在对应的文件夹,删掉旧的,可是再次install时还是会报错,怎么解决呢?

  • 写回答

2条回答 默认 最新

  • Debug_Tom_ing 2017-07-03 09:26
    关注

    先执行子项目的Install,成功之后,再执行父项目的Install。另外,maven提示你的是 你配置的私服有问题。可以尝试deploy一下。

    评论

报告相同问题?

悬赏问题

  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序
  • ¥15 onvif+openssl,vs2022编译openssl64