Eclipse:如何确保插件中的jar优先于其他地方的其他版本?

标签 eclipse plugins classpath eclipse-3.4

我正在开发一个 Eclipse 插件,其中包含特定版本的 Lucene。我需要生成一个搜索索引并部署它,以便它可以被使用相同版本 Lucene 的另一个应用程序读取。

我最近将 eclipse 升级到 3.4,第二个应用程序现在无法读取搜索索引。我看到 eclipse 3.4 包含较新版本的 Lucene,并且我假设在生成索引时使用该版本。

如何确定生成索引时所使用的 Lucene 版本?我的插件类路径以我的 Lucene 捆绑版本开始,因此我预计我的版本应该优先。

TIA

最佳答案

您可能想要给出 ClassPath CheckerClassPath Helper尝试一下。

您可以通过这种方式准确确定您的开发环境中使用了哪些 jar,以便将这些 jar 与部署环境中存在的 jar 进行比较,Luce 在部署环境中生成索引。

ClasPath 检查器 jar 冲突:
classpath checker

类路径助手被阻止(模糊)类 View :
classpath helper

关于Eclipse:如何确保插件中的jar优先于其他地方的其他版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/460872/

相关文章:

Wordpress - 授予用户特定的插件访问权限

由于 caching_sha2_password 导致 MySQL 8.0.11 连接错误

带有 Java 9 和 ClassPath 的 javax.smartcardio

scala - 将多个类路径条目添加到 Scala REPL 类路径

java - 无法在Windows上配置hadoop-1.2.1

eclipse - 从 eclipse 运行 JBoss 服务器 [Adempiere 项目]

android - 应用程序索引错误 - java.lang.NoClassDefFoundError : Failed resolution of: Lcom/google/android/gms/appindexing/AppIndex

c++ - 如何让 Nsight EE 使用 -dc 标志进行编译?

java - 在 ant 脚本中排除 eclipse 的排除项

java - 我可以在 EJB 3 容器内的类路径中动态发现 xml 文件吗?