怎么向MAVEN中增加lire的依赖。。

type Exception report

message Handler dispatch failed; nested exception is java.lang.ExceptionInInitializerError

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.ExceptionInInitializerError
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:978)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
root cause

java.lang.ExceptionInInitializerError
net.semanticmetadata.lire.DocumentBuilderFactory.getColorHistogramDocumentBuilder(DocumentBuilderFactory.java:219)
com.lire.test.ImageTest.createIndex(ImageTest.java:37)
springdemo.com.cast.web.App.Hello(App.java:31)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:601)
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:220)
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:134)
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:116)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

3个回答

<!-- https://mvnrepository.com/artifact/com.github.kzwang/lire -->
<dependency>
    <groupId>com.github.kzwang</groupId>
    <artifactId>lire</artifactId>
    <version>0.9.4-kzwang-beta1</version>
</dependency>


Z18768139076
Z18768139076 我在网上还收到一种JFeatureLib,把依赖写上去后,pom会出现这样的错误,Missing artifact net.semanticmetadata:lire:jar:0.9.4-fg-SNAPSHOT,不知道该这怎么做
3 年多之前 回复
qq_878799579
毕来生 如题,我并不知道你所需内容 ,只能给你一个lire的依赖
3 年多之前 回复
Z18768139076
Z18768139076 还是不行,页面还是没有出来,是不是只有这一种依赖啊,我用的lire是搜索它的特征
3 年多之前 回复


com.github.kzwang
lire
0.9.4-kzwang-beta1

在pom文件中增加以上依赖。望采纳

qq_878799579
毕来生 针对你的题目说的缺少lire 就找了一个lire的maven依赖,具体 截图看pom还少了那些吧
3 年多之前 回复
Z18768139076
Z18768139076 这一个依赖就够了吗?我向里面添加了但是没用啊,他还是报错
3 年多之前 回复

图片说明

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐