且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Intellij IDEA Maven插件 - 管理依赖关系

更新时间:2021-12-16 01:15:04

如果你使用maven,你只需要在pom.xml上添加你的依赖项。

If you use maven you just have to add your dependencies on the pom.xml.

你也可以使用

Open the pom.xml file > Menu "Code" > "Generate" > Popup "Dependency"

正如您所做的那样。 InteliJ会自动将它添加到项目的类路径中。

As you do. InteliJ will add it to the classpath of the your project automatically.

例如,当你有子模块时,会使用项目结构。它不是在这里添加jar。

Project Structure is used when you have submodule for example. It's not here to add jar.