Alternative solution for idea importing maven dependency failure

Alternative solution for idea importing maven dependency failure

1. Explanation of failure principle

1. There is no such resource in the configuration maven warehouse, for example: common Alibaba Cloud warehouses may not have this resource mapping;
2. The default maven warehouse used directly, but it could not be downloaded due to domestic network environment factors;
3. Even if it can be accessed outside Net, but because the default warehouse of maven failed to collect this resource/or the warehouse source configured by itself is not available; (this is another source package used in work, so you need to include the package in the maven warehouse)

Two, the solution

When searching on Baidu, you need to carefully check the note below for the maven dependency import instructions found, because it contains the repository source address, for example: Note: this artifact it located at MMBase repository (http://www.mmbase.org/maven2/) , This tells us to visit directly: http://www.mmbase.org/maven2/ This address can find the required resources

Note
When downloading is not possible, it can be judged that this resource is an external network, and the access channel is prohibited in China. Therefore, it is recommended to find other methods or download over the wall (over the wall to be tested)

Guess you like

Origin blog.csdn.net/rao991207823/article/details/106851497