2013-08-31 84 views
0

我試圖自動化eclipse RCP應用程序的構建。我決定用tycho插件使用maven。但是,我遵循教程創建插件,功能和產品。在本教程之後,http://mattiasholmqvist.se/2010/03/building-with-tycho-part-2-rcp-applications/似乎有些過時。Maven在基本的eclipse插件上安裝tycho本地啓動器問題

然而,當我跑我的MVN安裝我得到:

[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 23.056s 
[INFO] Finished at: Sat Aug 31 17:50:34 BST 2013 
[INFO] Final Memory: 78M/411M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.18.1:product-export (default-product-export) on project com.hal 
lahan.premierProduct: Product includes native launcher but no target environment was specified -> [Help 1] 
[ERROR] 

在產品,如果我取消了天然發射器我得到一個不同的問題:

[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.18.1:product-export (default-product-export) on project com.hallahan.premierProduct : Execution default-product-export of goal org.eclipse.tycho:tycho-packaging-plugin:0.18.1:product-export failed: Could not resolve plugin org.eclipse.core.resources.win32.x86_64_null; Path to dependency: -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException 
[ERROR] 

任何幫助將是很大的幫助或指導如何解決這些問題將是一個很大的幫助。

回答

0

嘗試添加的環境配置爲你的pom.xml:

<plugin> 
     <groupId>org.eclipse.tycho</groupId> 
     <artifactId>target-platform-configuration</artifactId> 
     <version>${tycho-version}</version> 
     <configuration> 
      <environments> 
      <environment> 
       <os>win32</os> 
       <ws>win32</ws> 
       <arch>x86</arch> 
      </environment> 
      <environment> 
       <os>linux</os> 
       <ws>gtk</ws> 
       <arch>x86_64</arch> 
      </environment> 
      <environment> 
       <os>macosx</os> 
       <ws>cocoa</ws> 
       <arch>x86_64</arch> 
      </environment> 
      </environments> 
     </configuration> 
     </plugin> 

此外,檢查出this鏈接以獲取更多信息。