简体   繁体   中英

How to add an external library in maven intellij

I copied some code from github and I have a problem with libraries. My code looks like:

代码

When i click on Authentication to add a maven dependency

点击

it shows that there is no results

没有结果

What I do wrong? Should I install anything before clicking "add maven dependency" ?

Add

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

To your pom.xml
Or just search for another dependency. https://mvnrepository.com/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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