How to fix when I get a HTTP repository blocked? If the repository is defined in your pom.xml, please fix it in your source code.
If the repository is defined in one of your dependencies POM, you'll get a message like: [ERROR] Failed to execute goal on project test: Could not resolve dependencies for project xxx: Failed to collect dependencies at my.test:dependency:version -> my.test.transitive:transitive:version: Failed to read artifact descriptor for my.test.transitive:transitive:jar:version: Could not transfer artifact my.test.transitive:transitive:pom:version from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [blocked-repository-id (http://blocked.repository.org, default, releases+snapshots)] Options to fix are: upgrade the dependency version to a newer version that replaced the obsolete HTTP repository URL with a HTTPS one, keep the dependency version but define a mirror in your settings.
Repository extras is listed more than once in the configuration CentOS Linux 8 - AppStream 18 kB/s | 2.3 kB 00:00 Errors during downloading metadata for repository 'appstream': - Status code: 404 for http://mirrors.cloud.aliyuncs.com/centos/8/AppStream/x86_64/os/repodata/repomd.xml (IP: 100.100.2.148) Error: Failed to download metadata for repo 'appstream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
搜索一番之后发现原因貌似是
2022年1月1日起CentOS官方将不再对CentOS 8提供服务支持,虽然系统可以正常使用,但CentOS 8的yum源已经移除无法使用了,使用yum安装会报错:Repository extras is listed more than once in the configuration CentOS Linux 8 - AppStream Errors during downloading metadata for repository 'appstream': - Status code: 404 for
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0750 for'/Users/user/.ssh/id_rsa' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "/Users/user/.ssh/id_rsa": bad permissions
functionread_file() { for file in `ls -a $1` do if [ -d $1"/"$file ];then if [[ $file != '.' && $file != '..' ]];then read_file $1"/"$file fi else echo$1"/"$file up_file_name=$1"/"$file echo$up_file_name fi done }