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

springboot web創(chuàng)建失敗,解決Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom

這篇具有很好參考價值的文章主要介紹了springboot web創(chuàng)建失敗,解決Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報違法"按鈕提交疑問。

在創(chuàng)建springboot項目時會遇到maven導(dǎo)入依賴sync報錯

1.先檢查你的設(shè)置里面maven的地址是否有誤

could not find artifact org.springframework.boot:spring-boot-starter:pom:unk,spring boot,后端,java,maven

2.maven下面的Runner和你創(chuàng)建springboot項目時的jdk是否一致

could not find artifact org.springframework.boot:spring-boot-starter:pom:unk,spring boot,后端,java,maven

3.再檢查一下項目字節(jié)碼和你創(chuàng)建springboot時的jdk版本是否一致

could not find artifact org.springframework.boot:spring-boot-starter:pom:unk,spring boot,后端,java,maven

如果都沒問題那么就檢查maven安裝目錄下的conf – settings.xml文件阿里云配置地址是否正確,如果還是不行,那么可以擴(kuò)大搜索地址(代碼如下)

<mirror>
	     <id>alimaven</id>
	     <mirrorOf>*</mirrorOf>
	     <name>aliyun maven</name>
	     <url>https://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>

再到項目的pom文件的里添加以下代碼

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-parent</artifactId>
            <version>2.7.7</version>
            <type>pom</type>
</dependency>

如果還不行那么就手動刷新maven(雙擊圈起來的文字)

could not find artifact org.springframework.boot:spring-boot-starter:pom:unk,spring boot,后端,java,maven

注意:

jdk8不支持3.0以上的springboot版本,如果你在創(chuàng)建項目的時候用的是jdk8,那么我建議你在創(chuàng)建好項目之后自行再pom文件里降級,我剛開始接觸springboot時,用的是jdk11,導(dǎo)入的springboot版本是2.7.1,然后弄了差不多半天都找不到原因,然后我就擴(kuò)大了阿里云的搜索地址,自行在pom文件里降低springboot版本,最后再在添加上上面的依賴就好了

總結(jié):

這些都是我經(jīng)歷過,第一次跟著人家學(xué)習(xí)springboot就遇到了這個問題,硬是弄了六七個小時,我剛開始用的idea是2020.2版本,就是用以上的辦法解決的,如果還是不行可以嘗試著使用更高級的版本(我已經(jīng)換了)文章來源地址http://www.zghlxwxcb.cn/news/detail-764599.html

到了這里,關(guān)于springboot web創(chuàng)建失敗,解決Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

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

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

相關(guān)文章

  • IDEA Maven 項目中 “Could not find artifact“ 問題的常見情況和解決方案

    在IDEA(IntelliJ IDEA)中使用Maven構(gòu)建項目時,有時會遇到“Could not find artifact”這樣的錯誤。這個錯誤通常意味著Maven試圖下載或查找某個依賴項,但是沒有在配置的倉庫中找到。這個問題可能會導(dǎo)致項目構(gòu)建失敗,因此需要了解常見的情況以及相應(yīng)的解決方案。 IDEA Maven項目中

    2024年04月26日
    瀏覽(120)
  • Maven異常:Could not find artifact

    Maven異常:Could not find artifact

    異常來源: 筆者在構(gòu)建springboot多module項目時,parent模塊構(gòu)建了parent依賴,而子項目pom文件的 標(biāo)紅,進(jìn)入發(fā)現(xiàn)出現(xiàn)類似這樣的錯誤:Could not find artifact***; 異常原因: 經(jīng)過度娘驗證,發(fā)現(xiàn)是在子module中沒有得到父模塊的依賴, 解決辦法: 1、 筆者使用的是Intellil Idea,在mav

    2024年02月16日
    瀏覽(15)
  • 【解決】Maven報錯Could not find artifact com.mysql:mysql-connector-j:pom:unknown in aliyunmaven解決及分析

    【解決】Maven報錯Could not find artifact com.mysql:mysql-connector-j:pom:unknown in aliyunmaven解決及分析

    創(chuàng)建springboot項目,勾選數(shù)據(jù)庫驅(qū)動 springboot版本為2.7.0 Maven報錯Could not find artifact com.mysql:mysql-connector-j:pom:unknown in aliyunmaven 解決方法就是給mysql-connector-j指定版本 注意點(diǎn):使用8.0+版本的mysql驅(qū)動,后續(xù)在application.yaml中配置driver時要加cj 6.0以上的mysql驅(qū)動,jdbc.driver為com.mysql.

    2024年02月07日
    瀏覽(22)
  • idea 找不到類 could not find artifact

    idea 找不到類 could not find artifact

    剛開始接手一個項目,代碼clone下來過后卻跑不起來是一件很尷尬的事情,這里整理了找不到類報錯的常見解決方案 1.刷新maven項目 (Generate Sources and update folders for all projects) 2.清理idea緩存 (這一步能解決大部分的問題) ? (推薦勾選1 2行)一般來說勾選第二行就可以了

    2023年04月08日
    瀏覽(28)
  • Maven報錯Could not find artifact com.mysql:mysql-connector-j:pom:unknown in aliyunmaven解決及分析

    Maven報錯Could not find artifact com.mysql:mysql-connector-j:pom:unknown in aliyunmaven解決及分析

    創(chuàng)建springboot項目,勾選數(shù)據(jù)庫驅(qū)動 springboot版本為2.7.0 Maven報錯Could not find artifact com.mysql:mysql-connector-j:pom:unknown in aliyunmaven 解決方法就是給mysql-connector-j指定版本 注意點(diǎn):使用8.0+版本的mysql驅(qū)動,后續(xù)在application.yaml中配置driver時要加cj 6.0以上的mysql驅(qū)動,jdbc.driver為com.mysql.

    2024年02月16日
    瀏覽(30)
  • 已解決Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.4.RELEASE

    已解決Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.4.RELEASE Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.4.RELEASE 出現(xiàn)找不到Spring Boot依賴的錯誤可能有多種原因 下滑查看解決方法 以下是一些常見的解決方法: 清理本地Maven倉庫:有時候

    2024年02月05日
    瀏覽(34)
  • maven父工程出現(xiàn)Could not find artifact xxx異常

    maven父工程出現(xiàn)Could not find artifact xxx異常

    maven錯誤: 錯誤:找不到 xxx的artifact,而這個artifact都是由relativePath標(biāo)簽來指定的。因此問題出在relativePath標(biāo)簽的指定的父工程地址寫錯了! 場景描述: 父工程cloud-demo聚合多個子工程,pom.xml如下: 子工程又繼承了該父工程,pom如下 ?當(dāng)對父工程執(zhí)行maven指令,比如maven ins

    2024年02月12日
    瀏覽(91)
  • 解決Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.6.2 in alimaven

    解決Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.6.2 in alimaven

    在部署SpringBoot項目時遇到pom所有版本號爆紅,而報錯只有標(biāo)題中的那句話,嘗試了多種方法即便不再報錯但仍爆紅。在查閱和嘗試了多種方法后,我決定刪除之前的maven鏡像配置嘗試一下。 方法: 復(fù)制一下配置代碼,至maven文件下的conf,找到settings.xml,選擇文本方式打開文

    2024年04月17日
    瀏覽(29)
  • 解決maven倉庫導(dǎo)入項目報錯問題:maven Could not find artifact org.apache.maven.pluginsmaven-compiler-pluginpom報錯問題

    解決maven倉庫導(dǎo)入項目報錯問題:maven Could not find artifact org.apache.maven.pluginsmaven-compiler-pluginpom報錯問題

    1:首先maven倉庫settings.xml加入阿里云配置 mirror ? ? ? idaliyunmaven/id ? ? ? mirrorOf*/mirrorOf ? ? ? name阿里云公共倉庫/name ? ? ? urlhttps://maven.aliyun.com/repository/public/url ? ? /mirror 2:在加入項目的時候報錯maven Could not find artifact org.apache.maven.pluginsmaven-compiler-pluginpom這個問題的時候

    2024年02月16日
    瀏覽(26)
  • 項目打包關(guān)于“Could not find artifact (父級pom文件ID)“問題處理

    項目打包關(guān)于“Could not find artifact (父級pom文件ID)“問題處理

    今天在打包多maven 項目的時候出現(xiàn)了一個問題:單獨(dú)打包一個項目的時候會報父級pom文件找不到問題 (1)開始以為是緩存問題,后面嘗試刷新maven,清除idea緩存并重啟后,再次嘗試打包還是這個問題 (2)因為提示父級未找到,這邊打包的順序調(diào)整了下,先將父級的pom instal

    2024年02月11日
    瀏覽(16)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包