测试失败,并出现未解决的依赖项错误

问题描述

运行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上看不到它们。我不知道怎么了。当我运行命令时,是否有可能在错误的存储库中查找错误信息?或者在运行命令时可能存在权限问题?

解决方法

我没有对特定依赖项的权限。一旦获得我的认可,我就可以进行测试。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...