想通了。只需要添加配置到第谷-P2-主任插件,在我的产品的pom.xml以下是从文件中的一些片段:
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<includeAllDependencies>true</includeAllDependencies>
<profileProperties>
<macosx-bundled>true</macosx-bundled>
</profileProperties>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<formats>
<win32>zip</win32>
<linux>zip</linux>
<macosx>zip</macosx>
</formats>
<products>
<product>
<id>MyProduct</id>
<rootFolders>
<macosx>MyProduct.app</macosx>
</rootFolders>
</product>
</products>
</configuration>
<executions>
<execution>
<!-- install the product using the p2 director -->
<id>materialize-products</id>
<goals>
<goal>materialize-products</goal>
</goals>
</execution>
<execution>
<!-- create zip file with the installed product -->
<id>archive-products</id>
<goals>
<goal>archive-products</goal>
</goals>
</execution>
</executions>
</plugin>
我有同样的问题,我没有找到如何改变文档中的“Eclipse.app”的名称,你记得吗? 相反,我已经从我的ANT脚本中重命名了该文件夹。 –
我编辑了我的答案,以包含相关的片段,以充分利用我的记忆 –