简体   繁体   中英

Error upgrading grails app to 2.3.7

I have recently upgraded my Grails application from 2.1.1 to 2.3.7. It's showing some exceptions with searchable plugin. I am using searchable:0.6.6

Exception looks like this:

C:\Users\Charu\.grails\2.3.7\projects\jobjoos\plugins\searchable-0.6.6\src\java\grails\plugin\searchable\internal\compass\config\EnvironmentSearchableCompassConfigurator.java:25: package org.apache.lucene.analysis does not exist
import org.apache.lucene.analysis.Analyzer;
                                 ^
C:\Users\Charu\.grails\2.3.7\projects\jobjoos\plugins\searchable-0.6.6\src\java\grails\plugin\searchable\internal\compass\search\DefaultSuggestQueryMethod.java:31: package org.apache.lucene.analysis does not exist
import org.apache.lucene.analysis.WhitespaceAnalyzer;

Can anyone help me on this, about what's causing it to fail and how to remove it.

Have you added this:

Use the above dependency declaration in your BuildConfig.groovy file and then add

mavenRepo "http://repo.grails.org/grails/core"

since this is now required

I had got around it in the past by adding this to my dependencies

dependencies {

        compile("org.compass-project:compass:2.2.0")
}

我将可搜索的版本从0.6.6降级到0.6.5,然后它运行正常。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM