问题:
我有一个 maven 项目,它使用命令行中的 maven 工具构建和编译得很好。
然后我有拒绝构建所述项目的 IntelliJ IDEA,声称某些依赖项不可用。
我发现问题的根源实际上是 IntelliJ 无法连接到包含所述依赖项的 Maven 存储库。在存储库中,有 3 个:
apache 的 maven repo ( https://repo.maven.apache.org/maven2 )
sonatype 的 oss 存储库 ( https://oss.sonatype.org/content/repositories/snapshots )
公司的内部回购(省略网址)
所有这三个都可用,可通过浏览器访问以进行查看,并且使用 maven 命令行界面获取它们的依赖项。
但是,IntelliJ 只是说“.. 无法重新连接”并显示有关更新所述存储库的错误。我尝试使用不同的 maven 选项(我的本地安装,3.5.2;intellij 捆绑的 maven2 和 maven3),但无济于事。
知道为什么会发生这种情况吗?
我想切换到IntelliJ for forge modding(minecraft).当我做他们在网上做的事情时,我得到了一个maven错误......
Unindexed remote maven repositories found. Disable...
The following repositories used in your gradle projects were not indexed yet:
http://files.minecraftforge.net/maven
If you want to use dependency completion for these repositories artifacts,
Open Repositories List, select required repositories and press "Update" button
Run Code Online (Sandbox Code Playgroud)
当我点击更新,它加载半秒然后再次给出相同的错误...我在互联网上搜索,没有人似乎有我的问题...请帮助吗?