如何使用maven构建Eclipse插件?

时间:2023-01-24 16:48:13

How do you build an Eclipse plugin with Maven? What dependencies or plugins do I need? I am looking to develop for Eclipse 3.7.

你如何使用Maven构建Eclipse插件?我需要哪些依赖项或插件?我期待为Eclipse 3.7开发。

1 个解决方案

#1


3  

You can use Maven 3.3 (at least) and Maven Tycho 0.24.0. Add this to your project's .mvn/extensions.xml:

您可以使用Maven 3.3(至少)和Maven Tycho 0.24.0。将其添加到项目的.mvn / extensions.xml中:

<extensions>
  <extension>
    <groupId>org.eclipse.tycho.extras</groupId>
    <artifactId>tycho-pomless</artifactId>
    <version>0.26.0</version>
  </extension>
</extensions>

Then you must define your pom.xml according to the structure of your project. I recommend this article: Eclipse Tycho for building Eclipse Plug-ins, OSGi bundles and RCP applications - Tutorial

然后,您必须根据项目的结构定义pom.xml。我推荐这篇文章:Eclipse Tycho用于构建Eclipse插件,OSGi包和RCP应用程序 - 教程

You can follow the example on this page to have a general idea of using maven plugin Tycho.

您可以按照此页面上的示例来大致了解如何使用maven插件Tycho。

#1


3  

You can use Maven 3.3 (at least) and Maven Tycho 0.24.0. Add this to your project's .mvn/extensions.xml:

您可以使用Maven 3.3(至少)和Maven Tycho 0.24.0。将其添加到项目的.mvn / extensions.xml中:

<extensions>
  <extension>
    <groupId>org.eclipse.tycho.extras</groupId>
    <artifactId>tycho-pomless</artifactId>
    <version>0.26.0</version>
  </extension>
</extensions>

Then you must define your pom.xml according to the structure of your project. I recommend this article: Eclipse Tycho for building Eclipse Plug-ins, OSGi bundles and RCP applications - Tutorial

然后,您必须根据项目的结构定义pom.xml。我推荐这篇文章:Eclipse Tycho用于构建Eclipse插件,OSGi包和RCP应用程序 - 教程

You can follow the example on this page to have a general idea of using maven plugin Tycho.

您可以按照此页面上的示例来大致了解如何使用maven插件Tycho。