这样一个错误,baidu怎么也没有答案,
[ERROR] Error resolving version for plugin 'org.apache.tomcat.maven:tomcat7-maven-plugin' from the repositories
[local (/home/gitlab-runner/maven/repo), central (http://repo1.maven.org/maven2)]:
Plugin not found in any plugin repository -> [Help 1]
最后从bing上搜索到相同情况并解决
How do you clear Apache Maven's cache?
-------------------
Have you tried the -U flag which will update artifacts
是说存在改变,cache需要更新,在命令行中增加 -U参数
sudo mvn clean package install -f park/pom.xml -DskipTests -U