reference non plugin project to eclipse plugin project(将非插件项目引用到eclipse插件项目)
问题描述
我可以将 Eclipse 插件项目的引用添加到非插件 jar 中吗?这是一个我无法更改的罐子,所以我必须按原样使用它.
Can I add a reference from an eclipse plugin project to a non plugin jar? This is a jar that I can not change, so i have to use it as is.
谢谢伊多
推荐答案
最安全的方法是从现有的 jar 文件创建一个新插件:
The safest approach would be to create a new plugin from your existing jar file:
选择新建项目->插件开发->现有JAR档案中的插件
然后选择 jar 文件(Galileo 上的Add Externals"),为项目命名并填写一些插件属性(可选)并选择是否要解压缩 jar或保持原样.我保持选中复选框...
Then choose the jar file(s) ('Add Externals' on Galileo), name the project and fill in some plug-in properties (optional) and choose whether you want to unzip the jar or keep it as it is. I keep the checkbox checked...
就是这样.Eclipse 将自动生成一个导出所有包的插件项目,以便它可以在您的插件或 rcp 项目中使用.
And that's it. Eclipse will autogenerate a plugin project that exports all packages so that it can be used in your plug-in or rcp project.
这篇关于将非插件项目引用到eclipse插件项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:将非插件项目引用到eclipse插件项目
- Eclipse 插件更新错误日志在哪里? 2022-01-01
- 从 finally 块返回时 Java 的奇怪行为 2022-01-01
- Jersey REST 客户端:发布多部分数据 2022-01-01
- C++ 和 Java 进程之间的共享内存 2022-01-01
- value & 是什么意思?0xff 在 Java 中做什么? 2022-01-01
- Safepoint+stats 日志,输出 JDK12 中没有 vmop 操作 2022-01-01
- 将log4j 1.2配置转换为log4j 2配置 2022-01-01
- 如何使用WebFilter实现授权头检查 2022-01-01
- Java包名称中单词分隔符的约定是什么? 2022-01-01
- Spring Boot连接到使用仲裁器运行的MongoDB副本集 2022-01-01
