可以eclipse插件项目依赖于java项目 [英] can eclipse plugin project depend on java project

查看:107
本文介绍了可以eclipse插件项目依赖于java项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个eclipse插件项目依赖于我的eclipse中的java项目。通常我做的是将项目导出为jar,并在插件中按原样使用。但这需要手动工作。我可以从我的插件程序引用到一个将要编译和运行时依赖的java项目?

我看到一个类似的问题,但不完全相同。

解决方案

我认为,最接近的是从引用的项目创建一个jar文件,并将其导入项目库。但是对于目前开发的项目来说,这很难管理。



另一方面,是否可以将Java项目永久转换为插件?如果其他用户不使用OSGi / Eclipse,他/她将只看到一个清单/ manifest.mf文件(可能还有一个plugin.xml)在java项目特定的东西旁边,所以这不会打扰他们,但会帮助你。


I have an eclipse plugin project which dependes on java project in my eclipse. usually what I did is export the project as jar and use it as-is in the plugin. but this requires manual work. can I have a reference from my plugin projct to a java project that will be both compile-time and run-time dependency ?
I saw a similar question, but not exactly the same.

解决方案

I think, the closest thing to this is to create a jar file from the referenced project, and import it to the projects repository. But thats quite hard to manage for a currently developed project.

On the other hand, isn't it possible to simply convert the Java project into a plug-in permanently? If the other user does not use OSGi/Eclipse, he/she will see only a manifest/manifest.mf file (and possibly a plugin.xml) next to the java project specific stuff, so this would not disturb them, but would help you.

这篇关于可以eclipse插件项目依赖于java项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆