当前位置:网站首页>The dependency of POM file is invalid when idea imports external projects. Solution
The dependency of POM file is invalid when idea imports external projects. Solution
2022-07-27 01:11:00 【Coffee without ice or sugar】
1. Problem description
stay Intellij Idea Import external in maven Project time , The following happened :

Put the mouse on it and it will show as follows :
Failed to read artifact descriptor for org.springframework.boot: spring-boot-starter-data-jpa:jar:2.3.1.RELEASE
So in their own maven Under the installation package Repository Find this under the package jar package , Find out jar Package import failed , Online access to relevant materials , Some say the network is unstable , Download failed .

There was a situation before :pom Add dependency in , see maven The warehouse of ,jar The package is also downloaded , But just like the above tips , Check the solution online : Delete maven The corresponding package in the warehouse , Then download again , Still can't solve the problem . So try to change jar The package version is not good .
2. Problem solving
Download by yourself jar package , Then import maven Warehouse , And add dependencies .
1. download jar package
website :https://mvnrepository.com
Search the search box for the corresponding jar The name of the bag , Click on the search :
Click on the red line , Choose the right version :

Click... On the page jar You can download .
After downloading jar Put the bag on the desktop ,WIN + R function cmd,Windows Enter the command under the platform :
mvn install:install-file
-Dfile=C:\Users\DossS\Desktop\touch-sms-api.jar
-DgroupId=com.wondersgroup.frame.common.touch-sms-api
-DartifactId=touch-sms-api
-Dversion=1.0
-DgeneratePom=true
-Dpackaging=jarBe careful : Here is a line feed for easy viewing , There is no line break in the command line .
-Dfile:jar The path of the package
-DgroupId: Select Download jar Package time corresponding to groupId( The selected part in the above figure )
-DartifactId: Select Download jar Package time corresponding to artifactId( The selected part in the above figure )
-Dversion: Select Download jar Package time corresponding to version


appear BUILD SUCCESS, Description of successful operation !
Check the warehouse and find many things 

Download yourself jar The dependency of the page is copied to pom.xml. Reopen the project , You can see that it's ready .
边栏推荐
- 分区的使用及案例
- Valueerror: the device should not be 'GPU', since paddepaddle is not compiled with CUDA
- IDEA导入外部项目时pom文件的依赖无效问题解决
- Isolation level of MySQL database transactions (detailed explanation)
- Status management in Flink
- redis——缓存雪崩、缓存穿透、缓存击穿
- Flink的容错机制(checkpoint)
- 李宏毅机器学习(2017版)_P21:卷积神经网络CNN
- In depth learning report (3)
- 视频类小程序变现的最短路径:从带货到品牌营销
猜你喜欢

Flink based real-time project: user behavior analysis (I: real-time popular product statistics)

Choose RTMP or RTC protocol for mobile live broadcast

SQL学习(3)——表的复杂查询与函数操作

使用tika 判断文件类型

Small programs related to a large number of digital collections off the shelves of wechat: is NFT products the future or a trap?

Flink1.11 intervalJoin watermark生成,状态清理机制源码理解&Demo分析

李宏毅机器学习(2017版)_P21:卷积神经网络CNN

Valueerror: the device should not be 'GPU', since paddepaddle is not compiled with CUDA

Rational selection of (Spark Tuning ~) operator

Android -- Data Persistence Technology (III) database storage
随机推荐
MySQL uses and implements ranking functions rank and deny_ Rank and row_ NUMBER
游戏项目导出AAB包上传谷歌提示超过150M的解决方案
Doris或StarRocks Jmeter压测
Status management in Flink
数据仓库知识点
Flink sliding window understanding & introduction to specific business scenarios
flinksql 窗口提前触发
基于Flink实时项目:用户行为分析(一:实时热门商品统计)
初中高三部曲音视频下载Pronunciation Pairs+Ship or Sheep+Tree or Three
The difference between forward and redirect
Dataframe of sparksql
移动直播选择 RTMP 还是RTC协议
Spark源码学习——Data Serialization
李宏毅机器学习(2017版)_P6-8:梯度下降
Flink 滑动窗口理解&具体业务场景介绍
网站日志采集和分析流程
Canal installation
Flinksql multi table (three table) join/interval join
李宏毅机器学习(2017版)_P3-4:回归
基于Flink实时计算Demo:用户行为分析(四:在一段时间内到底有多少不同的用户访问了网站(UV))