当前位置:网站首页>Solve the problem of project dependency red reporting
Solve the problem of project dependency red reporting
2022-06-23 23:57:00 【zgDaren】
Problem analysis
Developing Java The project will always encounter various problems that the dependencies cannot be loaded , In fact, the underlying principle of this loading dependency is to The wheels that others have developed can quickly help us solve the problems in the project . Here we need to introduce a series of jar package (jar The package can be understood as the required wheel ). Therefore, the correct introduction of dependencies is the key .
Problem description
for instance : The following distributed task scheduling dependency displays an error .
Solution
1、 First of all we need to Maven The central warehouse https://mvnrepository.com/ To find the corresponding dependency , View the dependent organization name 、 Whether the module name and version name are correct .
2、 stay Maven Some of the dependencies of the central warehouse cannot be found , So you get Githttps://github.com/ Open source websites like this look for , Download the corresponding dependency . Configured Maven Private clothes All my friends know what they depend on jar All the bags are made of groupId Store dependent for hierarchical folders jar package . Here, the corresponding jar The folder corresponding to the package creation can be placed in the private server .
3、 however , stay Git Not all the dependencies downloaded in jar Bag . So here we need to use IDEA Bring your own tools or use them directly Maven Can be installed .
GitHub The project in is compiled as jar Package for dependency introduction
1、 Use elastic-job-lite-spring-boot-starter For example , stay GitHub Search for relevant information in , Download to local .
2、 Use IDEA Self contained Maven Tool installation , If it's here IDEA The address of the private server is configured in ,IDEA The required dependencies will be directly placed in the corresponding location of the private server .
3、 After the above operation ,IDEA Will automatically GitHub The item in becomes the wheel required in the item and is placed in the corresponding private server folder .
边栏推荐
- 复原IP地址[标准回溯+标准剪枝]
- Generative countermeasure networks (Gans) and variants
- 工作中一些常用的工具函數
- 入参参数为Object,但传递过去却成了[object object] 是因为需要转为JSON格式
- .NET 中的 Worker Service 介绍
- Differences between broadcastreceiver and localbroadcastmanager
- Three cool and coquettish bottom navigation
- Design of message push platform
- Leetcode——链表笔试题
- Digital property management has become a trend. How can traditional property companies achieve digital butterfly change through transformation?
猜你喜欢

Six complete open source projects, learning enough at a time

Cvpr2019/ image translation: transgaga: geometry aware unsupervised image to image translation

Embedded interface review materials

PMP Exam related calculation formula summary! Must see before examination

APP性能优化之启动流程分析

Three cool and coquettish bottom navigation

云原生架构(05)-应用架构演进

Another short video app with high imitation and eye opening

PMP考试相关计算公式汇总!考前必看

Visual explanation of clockwise inner curve in Green's formula hole digging method
随机推荐
CVPR2019/图像翻译:TransGaGa: Geometry-Aware Unsupervised Image-to-Image Translation几何感知的无监督图像到图像的翻译
工作中一些常用的工具函數
Three types of transactions in EF core (saveChanges, dbcontexttransaction, transactionscope)
[technical grass planting] the tail of the "double 11" event. Let's talk about how much discount the message push service package is!
The lower left corner of vs QT VTK displays the synchronized minor coordinate axis
Leetcode——链表笔试题
组合总数II[每个元素只能用一次 + 去重复解集]
extern、struct等关键字
log Network Execution Time
暑假第一周
Classical Chinese can be programmed???
MySQL导致索引失效的情况详解
Notepad++ practical function sharing (common methods for replacing the end and beginning of regular lines, text comparison function, etc.)
EF Core中的三类事务(SaveChanges、DbContextTransaction、TransactionScope)
Chrome plug-in features and case analysis of actual combat scenarios
三维向量场中的通量
High imitation Betta app
[technical grass planting] Tencent Yunhao wool (consumption) record on the double 11
2022 Shandong Health Expo, Jinan International Health Industry Expo, China Nutrition and Health Exhibition
Digital supply chain management system for metallurgical industry: platform lean enterprise management to help the high-quality development of the industry