Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resource nexus-maven-repository-index.properties does not exist in IntelliJ

While experimenting with Grails 3 under IntelliJ I found the following warning:

 Unindexed remote maven repositories found. Disable...
 The following repositories used in your gradle projects were not indexed yet: 
 https://repo.grails.org/grails/core
 If you want to use dependency completion for these repositories artifacts,
 Open Repositories List, select required repositories and press "Update" button (show balloon)

If I am trying to resolve an issue, I get next error:

FileNotFoundException: Resource nexus-maven-repository-index.properties does not exist in IntelliJ

enter image description here

I would prefer to know, what does it mean? If repository is marked as "remote", then why the problem is absence of some (local?) file?

UPDATE

I think this is not related with Grails actually.

How to know more details on error, occurring in Indexed Maven Repositories Window in IntelliJ on Update button?

The popup message says

Resource nexus-maven-repository-index.properties does not exist in IntelliJ

enter image description here

like image 226
Dims Avatar asked Sep 08 '25 14:09

Dims


2 Answers

  • If you're using your custom repository
  • AND it is Nexus 3.x

chances are high that you forgot to set up a Task to publish your maven repository indexes.

Log in via browser. Go to Administration/System/Tasks/Create Task/Create Publish Maven indexes Task

Set it for an hourly publish. Done.

like image 51
SandorRacz Avatar answered Sep 10 '25 05:09

SandorRacz


For me the solution was to delete the folder ~/.m2/repository. This made Maven to re-index everything correctly.

Failed trials, that may work for someone else:

  • Build, Execution, Deployment → Build Tools → Maven → Repositories : Selecting the repositories and click updates.
  • Build, Execution, Deployment → Build Tools → Maven: Giving more memory JVM
  • Delete folder ~/.IntelliJIdea2016.3/system/caches
like image 44
Ioannis Koumarelas Avatar answered Sep 10 '25 07:09

Ioannis Koumarelas