修复Eclipse插件缺少的约束 [英] Fix missing constrains for eclipse plugins

查看:231
本文介绍了修复Eclipse插件缺少的约束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在维护一个eclipse插件,当我尝试启动配置时,收到约20个缺少约束警告。

例如: org.eclipse.emf.mwe2.lib
缺少约束:导入包:com.google.commmon.base; version = [14.0.1,19.0.0)



org.eclipse.emf.mwe2.lib_2 .8.3



我应该在哪里检查软件包的存在?应该在哪里?我是否错过了配置中的某些内容? (添加必需的插件并不能解决问题。)



版本:Neon.3版本(4.6.3)
构建ID: 20170314-1500

解决方案

用于导入包 Java包可以位于目标平台中包含的任何插件中。有关正在使用的目标平台的详细信息,请参见偏好设置中的插件开发>目标平台部分。如果您尚未这样做,则需要在目标平台中包含一个包含此软件包的插件。有关目标平台的更多详细信息,请参见此处



版本说,包含包含该软件包的插件的插件必须至少为14.0.1版且低于19.0.0版。 / p>

I am maintening an eclipse plugin and when I try to launch a configuration I got about 20 missing constraint warnings.
e.g.: org.eclipse.emf.mwe2.lib Missing Constraint: Import-Package: com.google.commmon.base; version="[14.0.1,19.0.0)"

org.eclipse.emf.mwe2.lib_2.8.3

Where should I check for the existance of the package? Where should it be located? Did I miss something in the configuration? (add required plugins did not solve the problem).

Version: Neon.3 Release (4.6.3) Build id: 20170314-1500

解决方案

For Import-Package the Java package can be in any plugin which is included in your Target Platform. See the 'Plug-in Development > Target Platform' section of the Preferences for details of the target platform you are using. If you haven't already done so you will need to include a plugin containing this package in the target platform. See here for more details on target platforms.

The version says that the plugin containing the plugin containing the package must be at least version 14.0.1 and lower than version 19.0.0.

这篇关于修复Eclipse插件缺少的约束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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