今天试着写分布式系统,用的是ssm+maven,创建了父工程时还正常,但是创建一个common工程时就出现了以下的异常
Description Resource Path Location Type
CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:3.2: ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:3.2 from http://maven.aliyun.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of alimaven has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:3.2 from/to alimaven (http://maven.aliyun.com/nexus/content/groups/public/): maven.aliyun.com pom.xml /taotao-common line 3 Maven Project Build Lifecycle Mapping Problem
经过本萌将近一个多小时的研究,这种异常都是指向自己的本地jar'包库,我的解决办法,如果你使用的是自己的本地jar包库,那么你需要换自己的jar包库,在网上找找应该就能找到,如果你学习的视频,那就使用提供视频方提供的jar包库,记住别忘了在maven中和eclipse中重新配置自己的本地jar包库,问题解决23333(会心一笑)。