我正在尝试创建一个基于Maven的泽西快速入门网络应用程序。我选的是玻璃鱼原型。但它给了我以下的错误。它正在成功地创建com.sun.jersey原型项目。但对于玻璃鱼来说,它有问题。在我的笔记本电脑中没有代理设置可以干扰下载过程。我要尽快解决这个问题。
Could not resolve archetype org.glassfish.jersey.archetypes:jersey quickstart-webapp:2.19 from any of the configured repositories.
Could not resolve artifact org.glassfish.jersey.archetypes:jersey-quickstart-webapp:jar:2.19
Failure to transfer org.glassfish.jersey.archetypes:jersey-quickstart-webapp:jar:2.19 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.glassfish.jersey.archetypes:jersey-quickstart-webapp:jar:2.19 from/to central (https://repo.maven.apache.org/maven2): connect timed out
Failure to transfer org.glassfish.jersey.archetypes:jersey-quickstart-webapp:jar:2.19 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.glassfish.jersey.archetypes:jersey-quickstart-webapp:jar:2.19 from/to central (https://repo.maven.apache.org/maven2): connect timed out发布于 2015-07-15 10:06:01
在原型的工件中似乎有一个错误:缺少一个连字符。它是“球衣-快速启动-网络应用”,而不是“泽西快速启动-网络应用”。
但是Maven Central也有超时,所以可能只有MC在传输时不可用。
在任何新的试用之前,删除文件夹:
发布于 2018-03-10 05:28:35
以下是我如何在eclipse中获得解决方案
1. Go to window.
2. Select Preferences.
3. Select Maven.
4. Select Archetypes
5. Add remote catalog.
6. catalog file :- [http://repo.maven.apache.org/maven2/archetype-catalog.xml][1]
Description :- Remote Archetype (You can mention your own)
7. Click on verify and it should say something like this
Found 27166 archetype(s)
8. Click on OK.
9. Restart your eclipse.
[1]: http://repo.maven.apache.org/maven2/archetype-catalog.xml发布于 2020-04-15 13:09:59
https://stackoverflow.com/questions/31426362
复制相似问题