maven 创建文件失败
(1)问题提示:Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failure to transfer org.apache.maven.plugins:maven-resources-plugin:jar:2.6 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:jar:2.6 from/to central (https://repo.maven.apache.org/maven2): connect timed out
Plugin org.apache.maven.plugins:maven-re
解决方法:因为对应的文件夹下下载的文件残缺,将该文件夹下的文件删除,重新project->build all.重新下载一下。
(2)问题提示:Could not calculate build plan: Plugin org.apache.maven.plugins:maven-jar-plugin:2.4 or one of its dependencies could not be resolved: Failure to transfer org.apache.maven.plugins:maven-jar-plugin:jar:2.4 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-jar-plugin:jar:2.4 from/to central (https://repo.maven.apache.org/maven2): connect timed out
Plugin org.apache.maven.plugins:maven-jar-plugin:2.4 or one of its dependencies could not be resolved: Failure to transfer org.apache.maven.plugins:maven-jar-plugin:jar:2.4 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-jar-plugin:jar:2.4 from/to central (https://repo.maven.apache.org/maven2): connect timed out
解决方法:因为对应的文件夹下下载的文件残缺,将该文件夹下的文件删除,重新project->build all.重新下载一下。
可能是网速的问题,在\.m2\repository\org\apache\maven\plugins,文件夹下有好多没有下载完的东西。所以以后如果碰到类似的问题,应该是文件残缺。