【发布时间】:2017-03-07 19:44:34
【问题描述】:
在these instructions 之后,我有一个插件片段,它向主机插件贡献了一个 jar 文件。它通过创建文件library.jar 来工作,该文件在build.properties 中指定并与包含要构建的源的目录相关联。
这一切都按预期工作,除了我不知道如何在 Eclipse 中创建 library.jar。当我运行指向我的片段项目并将其包含为模块的 Maven 构建时,文件library.jar 将显示在项目目录中。但是在eclipse中构建或清理项目不会创建文件。
我希望其他开发人员能够在他们的 Eclipse 工作区中生成 library.jar 而无需运行 Maven 构建。我真的很惊讶 Maven 构建在插件项目本身中创建了libary.jar,而不仅仅是在构建目标中创建的产品中。应该有一种方法可以让 Eclipse 在不运行 Maven 构建的情况下执行此操作。
编辑:
build.properties:
bin.includes = META-INF/,\
library.jar
source.library.jar = src/
清单.MF:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Custom
Bundle-SymbolicName: org.python.pydev.custom
Bundle-Version: 1.0.0.qualifier
Fragment-Host: org.python.pydev;bundle-version="5.1.2"
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Eclipse-PatchFragment: true
Bundle-ClassPath: library.jar,
.
Require-Bundle: org.python.pydev.debug;bundle-version="5.5.0",
org.eclipse.cdt.debug.core;bundle-version="8.0.0",
org.apache.log4j
【问题讨论】:
标签: maven build eclipse-plugin eclipse-rcp