问题描述
在pom.xml
中集成了tomcat
的maven
插件后,运行项目时报错:
Could not transfer artifact org.codehaus.plexus:plexus-io:jar:2.0.3 from/to central
(https://repo.maven.apache.org/maven2):😃 C:\Users\a.m2\repository\org\codehaus\plexus
\plexus-io\2.0.3\plexus-io-2.0.3.jar.part.lock (另一个程序正在使用此文件,进程无法访问。)
解决方案
File → Settings
使用本地仓库,而不是默认的C:\Users\a\.m2\repository
路径下的仓库。