测试因未解决的依赖项错误而失败
Tests fail with unresolved dependencies error
当我 运行 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 具有以下 repo 配置:
<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
看不到他们。我不确定出了什么问题。是否有可能当我 运行 命令时它在不正确的 repo 中查找,或者当我 运行 命令时可能存在权限问题?
我没有特定依赖项的权限。一旦获得批准,我就可以 运行 我的测试了。
当我 运行 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 具有以下 repo 配置:
<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
看不到他们。我不确定出了什么问题。是否有可能当我 运行 命令时它在不正确的 repo 中查找,或者当我 运行 命令时可能存在权限问题?
我没有特定依赖项的权限。一旦获得批准,我就可以 运行 我的测试了。