Grails安装searchable插件时could not find artifact的问题

在Grails环境中,我准备安装searchable插件。

但是遇到了一些问题。

| Error Resolve error obtaining dependencies:could not find artifact org.compass-project:compass:jar:2.2.1 in grailscentr(https://repo.grails.org/grails/plugins)(NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)

最后发现,其实你只要加一个repository就可以了……

repositories {
        inherits true // Whether to inherit repository definitions from plugins
        grailsPlugins()
        grailsHome()
        mavenLocal()
        grailsCentral()
        mavenCentral()
        // uncomment these (or add new ones) to enable remote dependency resolution from public Maven repositories
        //mavenRepo "http://repository.codehaus.org"
        //mavenRepo "http://download.java.net/maven/2/"
        //mavenRepo "http://repository.jboss.com/maven2/"
  
        mavenRepo "http://repo.grails.org/grails/core"
    }

希望对遇到同样问题的人有个帮助吧。

你可能感兴趣的:(Grails安装searchable插件时could not find artifact的问题)