【发布时间】:2019-01-06 23:13:16
【问题描述】:
我正在尝试在生成的 p2 存储库中创建并包含我的插件的源功能。目前,每个插件的源 jars 都会被创建,每个普通特性的源特性也是如此。但是,这些源特性不会包含在最终产品中,即 Eclipse 更新站点。
在我的父 POM 中,我有
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-source-plugin</artifactId>
<executions>
<execution>
<id>plugin-source</id>
<goals>
<goal>plugin-source</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-source-feature-plugin</artifactId>
<version>${tycho.version}</version>
<executions>
<execution>
<id>source-feature</id>
<phase>package</phase>
<goals>
<goal>source-feature</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-plugin</artifactId>
<version>${tycho.version}</version>
<executions>
<execution>
<id>attach-p2-metadata</id>
<phase>package</phase>
<goals>
<goal>p2-metadata</goal>
</goals>
</execution>
</executions>
</plugin>
我需要在功能的 POM 中添加一些内容吗? eclipse-repository 的?我没有想法。
【问题讨论】:
-
您是否尝试将它们添加到插件的
build.properties文件中的bin.includes变量中? (例如bin.includes=already_included_folder/,\ already_included_file,\ the_folder_i_want_in_final_product/)
标签: maven eclipse-plugin pom.xml tycho p2