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

前端 未结 4 2100
天命终不由人
天命终不由人 2021-02-02 10:05

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

 Unindexed remote maven repositories found. Disable...
 The following repositorie         


        
相关标签:
4条回答
  • 2021-02-02 10:23

    The same error occurs for Artifactory users. Solved with sanya's hint. Make sure the local repositories are included.

    After that the repo works:

    0 讨论(0)
  • 2021-02-02 10:24

    You can try using grails/repo and grails/plugins instead of grails/core.

    For example, in build.gradle:

    repositories {
        mavenLocal()
        maven { url 'http://repo.grails.org/grails/repo' }
        maven { url 'http://repo.grails.org/grails/plugins' }
    }
    

    I tested on IntelliJ Community 15 with Grails 3.0.9, JVM Version: 1.8.0_45, Apache Maven 3.3.9 and Gradle 2.3.

    0 讨论(0)
  • 2021-02-02 10:28
    • 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.

    0 讨论(0)
  • 2021-02-02 10:28

    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
    0 讨论(0)
提交回复
热议问题