[英]Missing “eclipse-plugin” packaging option
I' following a tutorial which deals with creating a java plugin and converting it to a maven project. 我正在学习一个教程 ,该教程涉及创建一个java插件并将其转换为maven项目。 One of the steps requires me to right click the plugin, pressing "configure" and selecting the "eclipse-plugin" packaging option: 其中一个步骤要求我右键单击插件,按“configure”并选择“eclipse-plugin”打包选项:
The problem is, I don't have the "eclipse-plugin" packaging option: 问题是,我没有“eclipse-plugin”打包选项:
Does anybody know why and what I should do to get it? 有人知道为什么以及我应该怎么做才能得到它?
You have to enable Tycho first. 你必须首先启用Tycho。 Otherwise Maven don't know what a OSGi(=Eclipse) Bundle is. 否则Maven不知道OSGi(= Eclipse)Bundle是什么。 In your case, choose anything as package type (ie jar or whatever) and click "Finish". 在您的情况下,选择任何东西作为包类型(即罐子或其他),然后单击“完成”。 Afterwards edit the pom.xml and change the packaging type to "eclipse-plugin". 然后编辑pom.xml并将包装类型更改为“eclipse-plugin”。
Enabling tycho (add this to your parent-pom): 启用tycho(将其添加到您的父pom):
<properties>
<tycho-version>0.23.1</tycho-version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho-version}</version>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
See: https://wiki.eclipse.org/Tycho/Reference_Card 请参阅: https : //wiki.eclipse.org/Tycho/Reference_Card
By the way: Since Tycho 0.24.0 it's possible to build plugins/features without a pom (=pomless). 顺便说一句:从Tycho 0.24.0开始,可以在没有pom(= pomless)的情况下构建插件/功能。 If you want to learn more about check this site: 如果您想了解有关查看此站点的更多信息:
https://wiki.eclipse.org/Tycho/Release_Notes/0.24 https://wiki.eclipse.org/Tycho/Release_Notes/0.24
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.