Bootstrap

解决:Failed to execute goal org.apache.maven.pluginsmaven-archetype-plugin3.1.2generate

问题:Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate (default-cli) on project standalone-pom: Execution default-cli of goal org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate failed: Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-archetype-plugin:jar:3.1.2 -> org.apache.maven.archetype:archetype-common:jar:3.1.2 -> org.apache.maven.shared:maven-invoker:jar:3.0.1 -> org.apache.maven.shared:maven-shared-utils:jar:3.2.1

我第一次新建Maven文件的时候,发现没有scr文件夹,并且文件没有构建成功,我就很奇怪,在网上搜索了一个多小时的解决办法,终于解决了。

问题截图:在这里插入图片描述

解决办法:把这个文件夹删掉!然后重新建项目,就可以了!
在这里插入图片描述

;