[英]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/
您需要在 pom 文件中添加 maven 依赖: https : //mvnrepository.com/artifact/org.springframework.security/spring-security-core
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.