如何解决测试失败,并出现未解决的依赖项错误
运行mvn clean test
时出现此错误:
[ERROR] Failed to execute goal on project prices-snapshot: Could not resolve dependencies for project com.me.cd:prices-snapshot:jar:0.0.1-SNAPSHOT: The following artifacts Could not be resolved: com.me.dp.te:te-client:jar:1.1.3.3,me-secure:me-secure:pom:1.1.2,com.me.as.logging:secure-logging:jar:0.6.1: Failure to find com.me.dp.te:te-client:jar:1.1.3.3 in https://repo.maven.apache.org/maven2 was cached in the local repository,resolution will not be reattempted until the update interval of central 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
我的pom具有以下回购配置:
<repository>
<id>UnmanagedReleases</id>
<url>https://nexus:8443/nexus/content/repositories/unmanaged_releases/</url>
</repository>
<snapshotRepository>
<!-- <id>Snapshots</id>-->
<!-- <url>https://nexus:8443/nexus/content/repositories/snapshots/</url>-->
<!--<uniqueVersion>false</uniqueVersion> -->
<id>UnmanagedSnapshots</id>
<url>https://nexus:8443/nexus/content/repositories/unmanaged_snapshots/</url>
</snapshotRepository>
罐子在仓库中。我在https://repo.maven.apache.org/maven2
上看不到它们。我不知道怎么了。当我运行命令时,是否有可能在错误的存储库中查找错误信息?或者在运行命令时可能存在权限问题?
解决方法
我没有对特定依赖项的权限。一旦获得我的认可,我就可以进行测试。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。