关于网友提出的“Maven缺少Jar包 maven执行mvn install时报错”问题疑问,本网通过在网上对“Maven缺少Jar包 maven执行mvn install时报错”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:
问题:Maven缺少Jar包 maven执行mvn install时报错描述:
[ERROR] Failed to execute goal on project com.pktech.oal.platform.java.vo.sichuantelecom: Could not resolve dependencies for project com.pktech:com.pktech.oal.platform.java.vo.sichuantelecom:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: com.pktech:com.pktech.tp.java.api:jar:1.0-SNAPSHOT, com.pktech:com.pktech.nip.java.api:jar:1.0-SNAPSHOT: Could not find artifact com.pktech:com.pktech.tp.java.api:jar:1.0-SNAPSHOT -> [Help 1]
执行mvn install 时报错
如上是具体的报错信息
com.pktech.oal.platform.java.vo.sichuantelecom这个是项目名
尝试了mvn install –Dmaven.test.skip,跳过单元测试,也是包同样的错,
但是mvn clean 清理是可以的,不知道哪里出了问题,请大神指点,这个问题我已经找了一整天了,是在是解决不了了
问题出在com.pktech:com.pktech.tp.java.api:jar:1.0-SNAPSHOT, 你们应该是有在用Maven私服吧,是不是私服除了什么问题
[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
解决方案1: