IDEA:Cannot access public (xxx) in offline mode 错误

1. The idea system error message is as follows:

Cannot access public (https://maven.aliyun.com/repository/public) in offline mode Try running Maven import with -U flag (force update snapshot)

2.Troubleshooting ideas

When I saw this error message, the first thing I thought of was whether the maven environment variables were configured correctly. However, after some inspection, I found that there was no problem with the maven configuration. Then I thought about whether maven in the idea was not configured correctly because the idea was not configured. Correct, it is very likely that the above error will occur. However, I checked the idea configuration and there is no problem. There is also no problem when I check the Alibaba Cloud image;

3. Resolved successfully

Later, after a series of checking various configurations, I found that it was caused by a setting in the idea. Just remove the √ for offline work and it would be fine.
Insert image description here

Finally, the package was successfully packaged and the successfully deployed picture will not be released.
Insert image description here

Summarize

The solution is as follows:
1. Whether the maven environment variables are configured correctly;
2. Whether the idea configuration is correct;
3. Check the maven warehouse configuration;
4. Check whether the mirror path has changed or other conditions;

Guess you like

Origin blog.csdn.net/qq_24484317/article/details/129104156