Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What actually happens when IntelliJ 'updates' a maven repo?

Using IntelliJ 12, following Settings->Maven->Repositories, i noticed that mine were not updated recently. After i selected a repo and waited for a minute or two, they were updated.

I wonder, what actually happened from IntelliJ's point of view?

Does it pre-cache content? How often should repos be 'update'd?

like image 622
James Raitsev Avatar asked Dec 29 '12 23:12

James Raitsev


People also ask

How to update the list of Maven repositories in IntelliJ IDEA?

IntelliJ IDEA updates the list of repositories automatically. If you open a project that contains additional repositories specified, then the repositories are added to the Indexed Maven Repositories list and you can update the indexes.

Why are my Maven dependencies not imported correctly IntelliJ?

Maven dependencies imported incorrectly If for some reason the dependencies weren't imported correctly (IntelliJ IDEA highlights them), try to perform the following actions: You can check your local maven repository in the Maven | Repositories settings and try to update it.

How to fix Maven Quickstart archetype in IntelliJ IDEA?

For example, when you use the Maven quickstart archetype, it might use an older version of the Java compiler and runtime than the one you selected for your project,as pom.xml values override the values you define in IntelliJ IDEA when creating a project. To fix such issues, you can open your pom.xml file and modify it.

How to update Maven repository in Eclipse?

Update Maven repositories 1 In the Settings/Preferences dialog Ctrl+Alt+S, go to Build, Execution, Deployment | Build Tools | Maven | Repositories. ... 2 Select Repositories from options on the left. 3 On the Repositories page, click Update to update Maven repositories. 4 After the update is finished, click OK.


1 Answers

IntelliJ IDEA downloads indexes of maven repositories to suggest groupId, artifactId and versions of maven artifact when user edit pom.xml. I update repos indexes when I add new repository to the project.

like image 151
Sergey Avatar answered Nov 02 '22 23:11

Sergey