当前位置:网站首页>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 .
边栏推荐
- What are the necessary functions of short video app development?
- Flink based real-time project: user behavior analysis (II: real-time traffic statistics)
- Rabbit学习笔记
- 深度学习汇报(2)
- Isolation level of MySQL database transactions (detailed explanation)
- Uni-app开发App和插件以后如何开通广告盈利:uni-AD
- SQL学习(2)——表的基础查询与排序
- 深入理解Pod对象:基本管理
- More than live streaming: what other eye-catching functions does Tencent cloud live mlvb plug-in have besides streaming / streaming
- ContextCompat.checkSelfPermission()方法
猜你喜欢

Data warehouse knowledge points

数据仓库知识点

腾讯云MLVB技术如何在移动直播服务中突出重围之基础概念

MySQL索引优化:索引失效以及不适合建立索引的场景

基于Flink实时计算Demo—关于用户行为的数据分析

Tencent upgrades the live broadcast function of video Number applet. Tencent's foundation for continuous promotion of live broadcast is this technology called visual cube (mlvb)

How can Tencent cloud live plug-in mlvb make use of these advantages to become the divine assistant of anchor Live Streaming?

Flink的容错机制(checkpoint)

IDEA导入外部项目时pom文件的依赖无效问题解决

The basic concept of how Tencent cloud mlvb technology can highlight the siege in mobile live broadcasting services
随机推荐
flink需求之—SideOutPut(侧输出流的应用:将温度大于30℃的输出到主流,低于30℃的输出到侧流)
Rabbit learning notes
解决rsyslog服务占用内存过高
flinksql 窗口提前触发
Flinksql multi table (three table) join/interval join
李宏毅机器学习(2017版)_P3-4:回归
深度学习报告(3)
网站日志采集和分析流程
IDEA导入外部项目时pom文件的依赖无效问题解决
MySQL索引优化:索引失效以及不适合建立索引的场景
pytorch张量数据基础操作
深入理解Pod对象:基本管理
Which securities company has a low stock commission and which stock is safe to open an account
In 2022, will there be opportunities for mobile Internet apps and short video live tracks?
Iptables 详解与实战案例
Naive Bayes Multiclass训练模型
Zhimi Tencent cloud live mlvb plug-in optimization tutorial: six steps to improve streaming speed + reduce live delay
Golang implements AES with five encryption mode functions, encrypt encryption and decryption string output
通过FlinkCDC将MySQL中变更的数据写入到kafka(DataStream方式)
李宏毅机器学习(2017版)_P5:误差