Eclipse 导出一个空插件
我为 eclipse 编写了一个插件( knime )。但是 eclipse 生成的 jar 不包含任何类:
jar tvf plugins/fr.inserm.umr915.knime4ngs.nodes_1.0.0.jar
0 Thu May 19 08:45:26 CEST 2011 META-INF/
2543 Thu May 19 08:45:24 CEST 2011 META-INF/MANIFEST.MF
7941 Thu May 19 08:45:24 CEST 2011 plugin.xml
这是我的清单的内容:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Node extension for KNIME Workbench
Bundle-SymbolicName: fr.inserm.umr915.knime4ngs.nodes;singleton:=true
Bundle-Version: 1.0.0
Bundle-Vendor: Pierre
Require-Bundle: org.eclipse.core.runtime,
org.knime.workbench.core,
org.knime.workbench.repository,
org.knime.base
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Export-Package: fr.inserm.umr915.knime4ngs.corelib.bio,
fr.inserm.umr915.knime4ngs.corelib.knime,
fr.inserm.umr915.knime4ngs.corelib.util,
fr.inserm.umr915.knime4ngs.nodes.bam.view,
fr.inserm.umr915.knime4ngs.nodes.sql.query;
uses:="org.knime.core.node,
org.eclipse.core.runtime,
org.osgi.framework,
org.knime.core.data,
org.knime.core.node.defaultnodesettings,
fr.inserm.umr915.knime4ngs.corelib.knime",
fr.inserm.umr915.knime4ngs.nodes.unix.echo;
(... other packages here ...)
uses:="fr.inserm.umr915.knime4ngs.nodes,
org.knime.core.node,
org.eclipse.core.runtime,
org.osgi.framework,
org.knime.core.node.defaultnodesettings"
有帮助吗? 谢谢
编辑: 这是我的 build.properties:
bin.includes = plugin.xml,\
META-INF/
I wrote a plugin for eclipse ( knime ). But the jar generated by eclipse doesn't contain any class:
jar tvf plugins/fr.inserm.umr915.knime4ngs.nodes_1.0.0.jar
0 Thu May 19 08:45:26 CEST 2011 META-INF/
2543 Thu May 19 08:45:24 CEST 2011 META-INF/MANIFEST.MF
7941 Thu May 19 08:45:24 CEST 2011 plugin.xml
here is the content of my manifest:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Node extension for KNIME Workbench
Bundle-SymbolicName: fr.inserm.umr915.knime4ngs.nodes;singleton:=true
Bundle-Version: 1.0.0
Bundle-Vendor: Pierre
Require-Bundle: org.eclipse.core.runtime,
org.knime.workbench.core,
org.knime.workbench.repository,
org.knime.base
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Export-Package: fr.inserm.umr915.knime4ngs.corelib.bio,
fr.inserm.umr915.knime4ngs.corelib.knime,
fr.inserm.umr915.knime4ngs.corelib.util,
fr.inserm.umr915.knime4ngs.nodes.bam.view,
fr.inserm.umr915.knime4ngs.nodes.sql.query;
uses:="org.knime.core.node,
org.eclipse.core.runtime,
org.osgi.framework,
org.knime.core.data,
org.knime.core.node.defaultnodesettings,
fr.inserm.umr915.knime4ngs.corelib.knime",
fr.inserm.umr915.knime4ngs.nodes.unix.echo;
(... other packages here ...)
uses:="fr.inserm.umr915.knime4ngs.nodes,
org.knime.core.node,
org.eclipse.core.runtime,
org.osgi.framework,
org.knime.core.node.defaultnodesettings"
ay help ?
Thanks
EDIT:
and here is my build.properties:
bin.includes = plugin.xml,\
META-INF/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只是为了添加信息,插件的通用 build.properties 文件(带有标准 project/src 目录)定义了 3 个属性:
source..
和output..
定义了.,\
中的.,\
的源和输出位置。告诉 Eclipse 在导出时包含.
库。Just to add information, a common build.properties file for a plugin (with a standard project/src directory has 3 properties defined:
source..
andoutput..
defined the source and output location for.
. the.,\
inbin.includes
tells eclipse to include the.
library when exporting.