[英]Eclipse Tycho change default source location
I am trying to build eclipse plugin using Tycho, eventhough we are using maven, our project structure is bit different than standard tycho/maven structure. 我正在尝试使用Tycho构建eclipse插件,尽管我们正在使用maven,但我们的项目结构与标准tycho / maven结构有些不同。 (because due to company standards) (由于公司标准)
Project structure is as shown below: 项目结构如下图:
com.test.plugin
|
------ build
-------|
-------------plugin-artifacts
-------------|classes //compiled classes
-------------|META-INF
//here folder structure is bit different, pom.xml inside build directory
will take care of generating plugin-artifacts.
So my question is , is it possible to specify tycho to take build/plugin-artifacts
as root directory to generate plugin jar file, instead of taking com.test.plugin
as root? 所以我的问题是,是否可以指定tycho将build/plugin-artifacts
作为根目录以生成插件jar文件,而不是将com.test.plugin
作为根?
I am following Lars Vogel's tutorial to learn tycho plugin. 我正在按照Lars Vogel的教程学习tycho插件。
Tycho doesn't allow to configure where the OSGi manifest is located. Tycho不允许配置OSGi清单的位置。 It always has to be at META-INF/MANIFEST.MF
relative to the pom.xml
file. 相对于pom.xml
文件,它始终必须位于META-INF/MANIFEST.MF
。
Most other input and output folders are configurable though, so you could simply put the pom.xml
at com.test.plugin/build/plugin-artifacts
, and configure the paths in the build.properties
(located in the same folder as the pom.xml
) and POM. 不过,大多数其他输入和输出文件夹都是可配置的,因此您只需将pom.xml
放在com.test.plugin/build/plugin-artifacts
,然后在build.properties
配置路径(与pom.xml
放在同一文件夹中) pom.xml
)和POM。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.