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?
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With