国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Could not resolve dependencies for project

這篇具有很好參考價(jià)值的文章主要介紹了Could not resolve dependencies for project。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

maven 打包Could not resolve dependencies for project和無(wú)效的目標(biāo)發(fā)行版: 1.8
1.maven 打包Could not resolve dependencies for project

最近項(xiàng)目上使用的是idea ide的多模塊話,需要模塊之間的依賴,比如說(shuō)系統(tǒng)管理模塊依賴授權(quán)模塊進(jìn)行認(rèn)證和授權(quán),而認(rèn)證授權(quán)模塊需要依賴系統(tǒng)管理模塊進(jìn)行,然后,我就開始相互依賴,然后出現(xiàn)這樣的問題:

“Could not resolve dependencies for project”,讓我百思不得其解,最后網(wǎng)絡(luò)搜了搜,最后給的解決方案是:

我也碰到這個(gè)問題,需要把parent工程,也就是package是pom的那個(gè)工程先install一下
然后我就找parent下面的pom,找到標(biāo)簽里是pom的那個(gè)包,然后install了一下,就好了。原因未知,但是的確救了很多碰到相似問題的人

簡(jiǎn)單一句話:對(duì)著父項(xiàng)目先 clean install 然后子項(xiàng)目clean package發(fā)布 ok

2.maven 打包無(wú)效的目標(biāo)發(fā)行版: 1.8

保證所有打包的項(xiàng)目 使用的jdk為1.8的版本
Could not resolve dependencies for project
—————————————————————————————————————————————
報(bào)錯(cuò)如下圖
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

解決方案是現(xiàn)在目錄下打包

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包文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-480497.html

mvn clean install package

到了這里,關(guān)于Could not resolve dependencies for project的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • 解決npm install時(shí)報(bào)錯(cuò)Could not resolve dependency

    最近在新的項(xiàng)目使用npm install時(shí)發(fā)現(xiàn)報(bào)錯(cuò): 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日
    瀏覽(25)
  • npm install:Could not resolve dependency:peer... 原因和解決方案

    電腦 npm install 報(bào)錯(cuò); 報(bào)錯(cuò)日志如下: 上述報(bào)錯(cuò)日志中有個(gè)眼: this command with --force, or --legacy-peer-deps 那么npm:何時(shí)使用 --force 和 --legacy-peer-deps ? --force 會(huì)無(wú)視沖突,并強(qiáng)制獲取遠(yuǎn)端 npm 庫(kù)資源,即使本地有資源也會(huì)覆蓋掉 --legacy-peer-deps :安裝時(shí)忽略所有 peerDependen

    2024年02月13日
    瀏覽(23)
  • npm ERR! code ERESOLVEnpm ERR! ERESOLVE could not resolve dependency

    使用命令安裝 npm 包時(shí),我收到這些異常。 如何解決 ERESOLVE 無(wú)法解決安裝 npm 包時(shí)的依賴關(guān)系樹錯(cuò)誤 錯(cuò)誤? 要解決 ERESOLVE 安裝 npm 包時(shí)無(wú)法解決依賴關(guān)系樹錯(cuò)誤,您有 依賴關(guān)系沖突 ( 不正確 且可能 損壞 的依賴關(guān)系),如它所說(shuō),因此請(qǐng)嘗試使用 或 運(yùn)行命令。如果它沒有

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

    github中fork后: npm i 安裝項(xiàng)目依賴時(shí)報(bào)錯(cuò): 報(bào)錯(cuò)中有提供解決方案: 使用: npm install --force 或 npm install --legacy-peer-deps 問題: 在使用 npm install --legacy-peer-deps 時(shí),依舊報(bào)錯(cuò): 使用: npm install --force ,安裝依賴包成功

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

    npm ERR! Could not resolve dependency:npm ERR! peer vue@“^2.5.17“ from element-ui@2.15.12

    在IDEA的控制臺(tái)輸入指令 npm i element-ui -S 報(bào)錯(cuò): 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日
    瀏覽(24)
  • could not resolve dependency: npm err! peer react@“^16.8.0 || ^17.0.0“ from @material-ui/core@4.12.4

    在執(zhí)行 npm install 時(shí)看到以下錯(cuò)誤: 系統(tǒng)使用了 Material UI (MUI) 和 ReactJS 18,很明顯 MUI 的最新版本沒有支持 ReactJS 18。 使用以下命令,讓 NPM 支持更高的 ReactJS 版本 本文介紹了如何解決因?yàn)?Material UI 這樣的 NPM 包不支持更高版本的依賴項(xiàng) ReactJS 的解決方案。 https://stackoverf

    2024年02月11日
    瀏覽(27)
  • Could not resolve all files for configuration ‘:app:androidApis‘

    Could not resolve all files for configuration ‘:app:androidApis‘

    ?我在第一次使用AndroidStudio時(shí),編譯項(xiàng)目遇到了此問題 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日
    瀏覽(24)
  • Could not resolve all files for configuration ‘:app:androidJdkImage‘.

    在使用 ./gradlew build 編譯項(xiàng)目時(shí)候遇到了該問題,整體錯(cuò)誤如下: 可以看出使用的sdk版本為34,java版本為21. 解決辦法為,修改java版本為17。本地重新下載Java17的jdk,這樣本地就會(huì)有21、17兩個(gè)版本,然后在項(xiàng)目中指定依賴的java版本17并配置路徑(也可以配置環(huán)境變量) gradle.prope

    2024年02月01日
    瀏覽(38)
  • Android Could not resolve all files for configuration ‘:app:debugRuntimeClasspath‘

    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’ } 如下所示: 重新編譯看問題是否解決,如果沒有再接著往下看. 點(diǎn)擊File-Sett

    2024年02月12日
    瀏覽(25)
  • Android報(bào)錯(cuò)之Could not resolve all files for configuration ‘:app:debugRuntimeClasspath‘.

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包