简体   繁体   English

如何在 maven intellij 中添加外部库

[英]How to add an external library in maven intellij

I copied some code from github and I have a problem with libraries.我从 github 复制了一些代码,但库有问题。 My code looks like:我的代码看起来像:

代码

When i click on Authentication to add a maven dependency当我单击身份验证以添加 maven 依赖项时

点击

it shows that there is no results它表明没有结果

没有结果

What I do wrong?我做错了什么? Should I install anything before clicking "add maven dependency" ?在单击“添加 maven 依赖项”之前我应该​​安装任何东西吗?

Add添加

<dependency>
    <groupId>org.springframework.security</groupId>
    <artifactId>spring-security-core</artifactId>
    <version>5.4.0</version>
</dependency>

To your pom.xml到你的 pom.xml
Or just search for another dependency.或者只是搜索另一个依赖项。 https://mvnrepository.com/ https://mvnrepository.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM