Could not resolve dependencies for project

这篇具有很好参考价值的文章主要介绍了Could not resolve dependencies for project。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

maven 打包Could not resolve dependencies for project和无效的目标发行版: 1.8
1.maven 打包Could not resolve dependencies for project

最近项目上使用的是idea ide的多模块话,需要模块之间的依赖,比如说系统管理模块依赖授权模块进行认证和授权,而认证授权模块需要依赖系统管理模块进行,然后,我就开始相互依赖,然后出现这样的问题:

“Could not resolve dependencies for project”,让我百思不得其解,最后网络搜了搜,最后给的解决方案是:

我也碰到这个问题,需要把parent工程,也就是package是pom的那个工程先install一下
然后我就找parent下面的pom,找到标签里是pom的那个包,然后install了一下,就好了。原因未知,但是的确救了很多碰到相似问题的人

简单一句话:对着父项目先 clean install 然后子项目clean package发布 ok

2.maven 打包无效的目标发行版: 1.8

保证所有打包的项目 使用的jdk为1.8的版本
Could not resolve dependencies for project
—————————————————————————————————————————————
报错如下图
Could not resolve dependencies for project

[ERROR] Failed to execute goal on project source-data: Could not resolve dependencies for project source-data:source-data:jar:1.0-SNAPSHOT: Failure to find com.hikvision.bigdata:app-framework-support-aksk-sdk:jar:1.2.1-SNAPSHOT in http://maven.XXXXX/repository/maven-public/ was cached in the local repository, resolution will not be reattempted until the update interval of citydo 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

解决方案是现在目录下打包

mvn install:install-file -DgroupId=com.hikvision.bigdata -DartifactId=app-framework-support-aksk-sdk -Dversion=1.2.1-SNAPSHOT -Dpackaging=jar -Dfile=/var/lib/jenkins/workspace/xyt_source_data/doc/lib/app-framework-support-aksk-sdk.jar

然后再去mvn install 生成target jar包文章来源地址https://www.toymoban.com/news/detail-480497.html

mvn clean install package

到了这里,关于Could not resolve dependencies for project的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 解决npm install时报错Could not resolve dependency

    最近在新的项目使用npm install时发现报错: npm WARN cli npm v9.6.4 does not support Node.js v15.14.0. This version of npm supports the following node versions: `^14.17.0 || ^16.13.0 || =18.0.0`. You can find the latest version at https://nodejs.org/. npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR!  npm ERR! While resolving:

    2024年02月08日
    浏览(38)
  • npm install:Could not resolve dependency:peer... 原因和解决方案

    电脑 npm install 报错; 报错日志如下: 上述报错日志中有个眼: this command with --force, or --legacy-peer-deps 那么npm:何时使用 --force 和 --legacy-peer-deps ? --force 会无视冲突,并强制获取远端 npm 库资源,即使本地有资源也会覆盖掉 --legacy-peer-deps :安装时忽略所有 peerDependen

    2024年02月13日
    浏览(38)
  • npm ERR! code ERESOLVEnpm ERR! ERESOLVE could not resolve dependency

    使用命令安装 npm 包时,我收到这些异常。 如何解决 ERESOLVE 无法解决安装 npm 包时的依赖关系树错误 错误? 要解决 ERESOLVE 安装 npm 包时无法解决依赖关系树错误,您有 依赖关系冲突 ( 不正确 且可能 损坏 的依赖关系),如它所说,因此请尝试使用 或 运行命令。如果它没有

    2024年02月08日
    浏览(91)
  • Could not resolve dependency: peer vite@“^2.5.10“ from @vitejs/plugin-vue@2.1.0

    github中fork后: npm i 安装项目依赖时报错: 报错中有提供解决方案: 使用: npm install --force 或 npm install --legacy-peer-deps 问题: 在使用 npm install --legacy-peer-deps 时,依旧报错: 使用: npm install --force ,安装依赖包成功

    2024年02月14日
    浏览(31)
  • npm ERR! Could not resolve dependency:npm ERR! peer vue@“^2.5.17“ from element-ui@2.15.12

    在IDEA的控制台输入指令 npm i element-ui -S 报错: npm ERR! Could not resolve dependency:npm ERR! peer vue@\\\"^2.5.17\\\" from element-ui@2.15.12 vue3.0 不兼容 element-ui ,于是推出了element-plus 1.下载 element-plus npm install element-plus --save 2. 在main.js中引用

    2024年02月12日
    浏览(35)
  • could not resolve dependency: npm err! peer react@“^16.8.0 || ^17.0.0“ from @material-ui/core@4.12.4

    在执行 npm install 时看到以下错误: 系统使用了 Material UI (MUI) 和 ReactJS 18,很明显 MUI 的最新版本没有支持 ReactJS 18。 使用以下命令,让 NPM 支持更高的 ReactJS 版本 本文介绍了如何解决因为 Material UI 这样的 NPM 包不支持更高版本的依赖项 ReactJS 的解决方案。 https://stackoverf

    2024年02月11日
    浏览(76)
  • Could not resolve all files for configuration ‘:app:androidApis‘

     我在第一次使用AndroidStudio时,编译项目遇到了此问题 Could not resolve all files for configuration \\\':app:androidApis\\\'. Failed to transform file \\\'android.jar\\\' to match attributes {artifactType=android-mockable-jar, returnDefaultValues=false} using transform MockableJarTransform Cannot create mockable android.jar inval

    2024年02月04日
    浏览(39)
  • Could not resolve all files for configuration ‘:app:androidJdkImage‘.

    在使用 ./gradlew build 编译项目时候遇到了该问题,整体错误如下: 可以看出使用的sdk版本为34,java版本为21. 解决办法为,修改java版本为17。本地重新下载Java17的jdk,这样本地就会有21、17两个版本,然后在项目中指定依赖的java版本17并配置路径(也可以配置环境变量) gradle.prope

    2024年02月01日
    浏览(41)
  • Android Could not resolve all files for configuration ‘:app:debugRuntimeClasspath‘

    Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’. Could not find com.just.agentweb:agentweb-androidx:4.1.4. Searched in the following locations: 打开settings.gradle文件,加入代码 maven { url ‘https://maven.google.com’ } 如下所示: 重新编译看问题是否解决,如果没有再接着往下看. 点击File-Sett

    2024年02月12日
    浏览(58)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包