首页 > 解决方案 > maven无法从nexus下载jar

问题描述

有一些误会

        [ERROR] Failed to execute goal on project vinsuan-road-platform-comm: Could not resolve dependencies for project com.vinsuan.road.paltform:vinsuan-road-platform-comm:jar:1.0-SNAPSHOT: Failed to collect dependencies at com.vinsuan4cloud:vinsuan-common-core:jar:1.0.0: Failed to read artifact descriptor for com.vinsuan4cloud:vinsuan-common-core:jar:1.0.0: Failure to find com.vinsuan4cloud:vinsuan:pom:1.0.0 in http://xxx.xxx.xxx.xxx:9981/repository/sps_group/ was cached in the local repository, resolution will not be reattempted until the update interval of sps_group 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 :vinsuan-road-platform-comm`enter code here`

http://xxx.xxx.xxx.xxx:9981是出公司nexus url,所以很抱歉。</p>

然后我发现了一些类似的问题,他们的回答是版本不匹配,但是,vinsuan-common-core.jar 只有一个版本,所以我不知道是什么,我使用了一些操作,比如 clean 、compile、install、mvndependeny :sources,但是ide点错了。</p>

标签: maven

解决方案


错误说Failure to find com.vinsuan4cloud:vinsuan:pom:1.0.0pom在 repo旁边应该有一个文件jar,以便 maven 能够解决依赖关系


推荐阅读