dependencies.dependency.version‘ for mysql:mysql-connector-java:jar is missing.问题处理

这篇具有很好参考价值的文章主要介绍了dependencies.dependency.version‘ for mysql:mysql-connector-java:jar is missing.问题处理。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

问题描述:

项目使用的技术框架是Spring Boot,依赖管理工具是Maven,需要用到数据库所以引入了mysql-connector-java相关jar包。

[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'dependencies.dependency.version' for mysql:mysql-connector-java:jar is missing. @ line 17, column 21
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
……

问题解决:

高版本的MySQL驱动类的路径有所修改,修改一下MySQL驱动类即可,项目就能够正常启动了。

修改前:

        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <scope>runtime</scope>
        </dependency>

修改后:文章来源地址https://www.toymoban.com/news/detail-724326.html

        <dependency>
            <groupId>com.mysql</groupId>
            <artifactId>mysql-connector-j</artifactId>
            <scope>runtime</scope>
        </dependency>

到了这里,关于dependencies.dependency.version‘ for mysql:mysql-connector-java:jar is missing.问题处理的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

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

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

相关文章

  • mysql-connector-java-8.0.11-sources.jar下载后无法运行

    目录 问题背景 解决方法 1. 确保驱动已添加到项目中 2. 确保驱动版本与你的代码匹配 今天写代码遇到这个报错,解决后发出来分享一下: java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

    2024年02月09日
    浏览(31)
  • JDBC驱动包下载教程mysql-connector-java.jar包的下载教程

    java代码使用JDBC连接数据库少不了连接工具,数据库的连接时需要jar包,今天讲一下mysql-connector-java.jar怎么下载。 第一步,打开mysql的官网:https://www.mysql.com/ 第二步,选择downloads。 第三步,点击下方的Mysql Community Downloads。 然后单击选择 Connector/J 选项: 第四步,在此处下拉

    2024年02月11日
    浏览(35)
  • 建立springboot项目遇到:Cannot resolve com.mysql:mysql-connector-java:unknown报错

    今天建立spring boot项目遇到一个报错,记录一下: 报错内容为: 在pom.xml中配置爆红: 在application.properties中数据库驱动爆红:com.mysql.cj.jdbc.Driver爆红; 解决方法: 我是对pom.xml做了如下修改: 然后报错解决;

    2024年02月12日
    浏览(29)
  • ‘dependencies.dependency.systemPath‘ for *:*:jar must specify an absolute path but is

    下面是一张模块与子模块的目录图  kingdeekingdee-bizpom.xml依赖本地lib/k3cloud-webapi-sdk8.0.4.jar,配置如下: pom.xml报错提示: \\\'dependencies.dependency.systemPath\\\' for kingdee:kingdee:jar must specify an absolute path but is ${project.parent.basedir}/lib/k3cloud-webapi-sdk8.0.4.jar 意思是说:systemPath 只认识绝对路径

    2024年02月08日
    浏览(28)
  • Understanding Dependency Injection for angular

    Angular https://angular.io/guide/dependency-injection Denpendency Injection,  or DI, is one of fundamental concepts for angular, DI is writed by angular framework and allows classes with  Angular decorators,  such as Components, directives, Piples and Injectables , to configure dependencies that they need.  Two main roles exists in DI system: dependency

    2024年02月10日
    浏览(24)
  • 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的多模块话,需要模块之间的依赖,比如说系统管理模块依赖授权模块进行认证和授权,而认证授权模块需要依赖系统管理模块进行,然后

    2024年02月08日
    浏览(48)
  • Angular(二) Understanding Dependency Injection for angular

    Angular https://angular.io/guide/dependency-injection Denpendency Injection,  or DI, is one of fundamental concepts for angular, DI is writed by angular framework and allows classes with  Angular decorators,  such as Components, directives, Piples and Injectables , to configure dependencies that they need.  Two main roles exists in DI system: dependency

    2024年02月09日
    浏览(29)
  • 出现以上报错:Could not find artifact mysql:mysql-connector-java:pom:8.0.35 in alimaven

    代表在maven仓库没有找到对应版本的MySQL 如果你这里是导入其他包建议去找maven仓库直接搜索 链接 仓库服务 (aliyun.com) 在箭头处输入你的包名 这样问题就解决了

    2024年02月04日
    浏览(33)
  • Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.3.

    安装扩展后执行 提示 PHP版本问题 1、在项目对应的composer.json文件中添加: 如: 2、在对应的项目执行:composer dump 如果在执行过程中,遇到这种错误: 可在,php.ini配置文件中 将此函数去掉忽略即可。

    2024年02月15日
    浏览(58)
  • Could not find artifact mysql:mysql-connector-java:pom:unknown in central (https://repo.maven.apache

    报错原因:Could not find artifact mysql:mysql-connector-java:pom:unknown in centra 解决方法: 在pom.xml文件中指定你的mysql版本。 dependency         groupIdmysql/groupId         artifactIdmysql-connector-java/artifactId         version5.1.43/version         scoperuntime/scope /dependency

    2024年02月13日
    浏览(45)

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

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

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

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

二维码1

领取红包

二维码2

领红包