在尝试Hibernate搜索时如何摆脱lucene CompressionStoredFieldsFormat的java.lang.NoSuchMethod

时间:2015-11-04 10:19:23

标签: java hibernate maven lucene hibernate-search

我正在学习如何构建Java企业应用程序,并且一位朋友与我分享了他的项目。不幸的是,由于我不断收到以下错误,我无法部署到项目中:

09:53:58,540 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 60) MSC000001: Failed to start service jboss.persistenceunit."asset-guard-1.0.war#assetGuardPU": org.jboss.msc.service.StartException in service jboss.persistenceunit."asset-guard-1.0.war#assetGuardPU": java.lang.NoSuchMethodError: org.apache.lucene.codecs.compressing.CompressingStoredFieldsFormat.<init>(Ljava/lang/String;Lorg/apache/lucene/codecs/compressing/CompressionMode;I)V
    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:172)
    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117)
    at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:667)
    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    at org.jboss.threads.JBossThread.run(JBossThread.java:320)

我试过包括

<dependency>
        <groupId>org.apache.lucene</groupId>
        <artifactId>lucene-core</artifactId>
        <version>5.3.1</version>
    </dependency>
    <dependency>
        <groupId>org.apache.lucene</groupId>
        <artifactId>lucene-codecs</artifactId>
        <version>5.3.1</version>
    </dependency>

在我的POM中,但它仍然无法工作。

请帮忙!

0 个答案:

没有答案