【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”
昨天整了一下maven,今天又出了问题
第一个··为什么我的目录结构跟别人的一样。模板选的是apache的web模板
第二个 报错
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3:00.137s
[INFO] Finished at: Fri Nov 06 10:09:23 CST 2015
[INFO] Final Memory: 7M/121M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli) on project standalone-pom: Execution default-cli of goal org.apache.maven.plugins:maven-archetype-plugin:2.4:generate failed: Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven.archetype:archetype-registry🏺2.4, net.sourceforge.jchardet:jchardet🏺1.0: Could not transfer artifact org.apache.maven.archetype:archetype-registry🏺2.4 from/to central (http://repo.maven.apache.org/maven2): Connection to http://repo.maven.apache.org refused: Connection timed out: connect -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
[ERROR] Maven execution terminated abnormally (exit code 1)
在线等···急
通过maven-archetype-plugin去创建项目骨架的时候,网络连接失败。
Connection to http://repo.maven.apache.org refused
实际上,你连项目骨架都没有创建成功。
error log已经非常明显了,为什么不喜欢看呢?