Using maven dependencies on Eclipse plug-ins

ⅰ亾dé卋堺 提交于 2019-12-11 18:21:32

问题


I would like to use a maven dependency in my Eclipse plug-in. What I've done so far is I added the dependency on my pom:

<dependency>
    <groupId>com.mandrillapp.wrapper.lutung</groupId>
    <artifactId>lutung</artifactId>
    <version>0.0.5</version>
</dependency>

And when I try to use the dependency I get the run time exception below (omitted the stack trace):

org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: com/microtripit/mandrillapp/lutung/MandrillApi
.
.
.
Caused by: java.lang.NoClassDefFoundError: com/microtripit/mandrillapp/lutung/MandrillApi
.
.
.
Caused by: java.lang.ClassNotFoundException: com.microtripit.mandrillapp.lutung.MandrillApi cannot be found by myplugin_1.0.0.qualifier

How can I solve this issue?

来源:https://stackoverflow.com/questions/29664505/using-maven-dependencies-on-eclipse-plug-ins

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!