java Web项目使用Maven配置jar提示NoClassDeffoundError的问题

直接上图在这里插入图片描述
这里提示找不到FSDirectory,然而在porn.xml中已经引入了该依赖。

 			<dependency>
                <groupId>org.apache.lucene</groupId>
                <artifactId>lucene-core</artifactId>
                <version>${lucene.version}</version>
            </dependency>

在项目中直接运行测试程序一切正常。因此猜测可能是打包的tomcat打包的时候没有导入这些jar包。
在网上找到了类似的问题:
https://blog.csdn.net/wf632856695/article/details/53425422

猜你喜欢

转载自blog.csdn.net/Simonsdu/article/details/121628919
今日推荐