想通了。只需要添加配置到第谷-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腳本中重命名了該文件夾。 –
我編輯了我的答案,以包含相關的片段,以充分利用我的記憶 –