After importing the jar package that is not in the maven library into the local library, it still prompts that the jar package is missing

The Maven local warehouse has the corresponding jar package but the report cannot find it

problem causes

First, there is a file _remote.repositories under the package folder corresponding to your local warehouse;

Second, your project cannot connect to the warehouse to download this package now;

The above two points are the reason why there is a corresponding jar package locally, but the project still reports that the jar package cannot be found.

Solution

1. Directly kill the file _remote.repositories;

2. Configure your project so that your project can connect to the warehouse (usually a private server) that downloads this package. For specific configuration, you can add the corresponding private server warehouse through tags;

3. Modify the package source of the _remote.repositories file, which can be modified to the central warehouse;

Supongo que te gusta

Origin blog.csdn.net/dd2016124/article/details/131787953
Recomendado
Clasificación