简体   繁体   English

Eclipse Tycho更改默认源位置

[英]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.

相关问题 Eclipse和第谷-$ {tycho-version} - Eclipse and Tycho - ${tycho-version} 是否可以更改Eclipse Git的位置并将其指向Source tree Embedded Git? - Is it possible to change Eclipse Git location and point it to Source tree embedded Git? 我可以更改或配置Eclipse的默认日志文件位置吗? - Could I change or configure default log file location of eclipse? 在eclipse中,是否可以在不更改源文件夹的情况下更改默认包的内容? - In eclipse, is it possible to change what the default package is without changing the source folder? 如何在Eclipse中更改“Dynamic Web Project”默认源和输出文件夹? - How to change “Dynamic Web Project” default source and output folders in Eclipse? Tycho和Eclipse-PlatformFilter - Tycho & Eclipse-PlatformFilter maven + tycho:将“ eclipse-application”目标的构建文件夹从“ eclipse”更改为 - maven+tycho: change build folder for “eclipse-application” target from “eclipse” to something 如何使用将Tycho作为其构建系统的Maven从源构建Eclipse功能? - How do I build an Eclipse feature from source that uses Maven with Tycho as its build system? Eclipse:取消选中“使用默认位置” - Eclipse: Uncheck "Use Default Location" 在Eclipse中更改默认浏览器 - Change Default Browser in Eclipse
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM