Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经安装了 maven 和 JDK 并尝试创建 maven 项目并添加一些依赖项,正如您在屏幕截图中看到的那样,但依赖项没有下载,所以我无法导入。你能帮我吗。
那是因为您使用的是dependencyManagement,您只指定依赖项元信息,而不是实际的依赖项。
dependencyManagement
有关通过 Maven 管理依赖项的更多详细信息,您可以在此处找到:
maven依赖机制
maven依赖管理
将 guice 的版本更改为 4.1.0
好像没有4.1
https://mvnrepository.com/artifact/com.google.inject/guice