当前位置: 首页 > article >正文

解决“程序包com.alibaba.fastjson不存在”的错误 (导入瑞吉外卖项目)

1.查看maven文件夹下的com文件夹

没有alibaba这个文件夹 

2.配置阿里云镜像库

 配置settings.xml

注意两点:

1.localRepository是本地仓库的地址(上图)

2.配置镜像

    <mirrors>
        <mirror>  
            <id>alimaven</id>  
            <name>aliyun maven</name>  
            <url>http://maven.aliyun.com/nexus/content/groups/public/</url>  
            <mirrorOf>central</mirrorOf>          
        </mirror>  
      </mirrors>

3.刷新maven

假如以上两步都做完,但是问题还没有解决,

在项目终端输入 

mvn clean install

3.mysql依赖导入报错

ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] 'dependencies.dependency.version' for mysql:mysql-connector-java:jar is missing. @ line 67, column 21 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project org.example:reggie:1.0-SNAPSHOT (D:\hm-code\reggie\pom.xml) has 1 error [ERROR] 'dependencies.dependency.version' for mysql:mysql-connector-java:jar is missing. @ line 67, column 21 [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] ProjectBuildingException - Apache Maven - Apache Software Foundation PS D:\hm-code\reggie>

好像是让导入版本号 但是导入了好像也不行

 根据下面那篇博客知:是因为springboor版本过高 写成这样就可以了‘dependencies.dependency.version‘ for mysql:mysql-connector-java:jar is missing.问题处理_dependencies.dependency.version' for mysql:mysql-c-CSDN博客

 

4.完美解决


http://www.kler.cn/news/361233.html

相关文章:

  • ESP8266学习记录
  • LaTeX参考文献工具和宏包bibmap项目简介
  • 基于springboot家乡特色推荐系统
  • 马拉车算法(C/C++)
  • 柔性数组的使用
  • 携手并进,智驭教育!和鲸科技与智谱 AI 签署“101 数智领航计划”战略合作协议
  • 深入解析 Go 语言接口:多接口实现与接口组合的实际应用
  • 在 Vue 3 中实现电子签名组件
  • C语言初阶小练习4(不用临时变量交换数值)
  • Ubuntu(22.04)本地部署Appsmith
  • Flink Taskmanager 内存模型详解
  • 大数据新视界 --大数据大厂之大数据与区块链双链驱动:构建可信数据生态
  • Android EditText调起键盘,阻止Recyclerview调整大小方法
  • 【Python】Playwright:环境配置与自动生成代码
  • 一、rpm命令,二、yum命令
  • 力扣——用栈实现队列(C语言)
  • CryoEM - 冷冻电镜 基于深度学习的 从头重构(Ab-initio Reconstruction) 开源项目 教程
  • Redis 哨兵与集群:高可用与可扩展的解决方案
  • 2.3 朴素贝叶斯(基础分类)
  • C语言数据结构之双向链表(LIST)的实现
  • 独立构件风格
  • 二分图染色法
  • 帝国CMS – AutoTitlePic 自动生成文章标题图片插件
  • Centos7 安装 Openssl 和 Nginx
  • 微分方程(Blanchard Differential Equations 4th)中文版Exercise 1.4
  • postgresql14主从同步流复制搭建