报错 [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com:common:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.2.RELEASE from/to alimaven (http://maven.aliyun.com/nexus/content/repositories/central): Transfer failed for http://maven.aliyun.com/nexus/content/repositories/central/org/springframework/boot/spring-boot-starter-parent/2.1.2.RELEASE/spring-boot-starter-parent-2.1.2.RELEASE.pom and ‘parent.relativePath’ points at no local POM @ line 11, column 11
mvn -v 版本安装正常,也尝试过apt install 方式和自己下载tar解压配置,都不行
在切换用户中发现,普通用户下mvn -v无效,找到根源
最终解决:
su 普通用户
vim ~/.bashrc # 普通用户下也补上环境变量配置
source ~/.bashrc # 刷新配置
mvn -v 普通用户和root用户都生效后,再尝试mvn命令