简体   繁体   中英

How to import maven dependencies from nexus and from local .m2 repo?

I want to understand that how exactly does the IntelliJ's "Reimport all maven projects" work. Does it fetch the dependencies from remote nexus repo or from the local .m2. Also, from where does the Auto-import fetch it? Do they first search in local .m2 and if not found then go to remote or vice versa?

As per as i know "Reimport all maven projects" basically instruct IntelliJ to refresh its own cache from local .m2 folder. It doesn't fetch's those from remote repo.

"Auto-import" basically looks into .m2 and then check the remote if those dependencies are not available when there is change in pom.xml.

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