2010-07-13 43 views
8

我試圖通過P2更新站點更新基於Eclipse-RCP-3.5的應用程序。該應用程序包含兩個功能。基於RCP的應用程序的P2更新失敗

產品由Eclipse Buckminster構建。創建P2更新站點是產品構建的一部分。

時候開始通過菜單更新:Update -> Check for Updates一個消息框顯示:There is nothing to update.

當我嘗試菜單:Update -> Install New Software...並選擇相同的更新站點報告錯誤:

 
Your original request has been modified. 
    "Verinice Anwendung" is already installed, so an update will be performed instead. 
    "verinice server Feature" is already installed, so an update will be performed instead. 
Cannot complete the install because of a conflicting dependency. 
    Software being installed: Verinice Anwendung 1.1.1.201007130142 (sernet.gs.ui.rcp.main.feature.feature.group 1.1.1.201007130142) 
    Software currently installed: verinice 1.1.1 (sernet.gs.ui.rcp.main.product 1.1.1) 
    Only one of the following can be installed at once: 
    Verinice Anwendung 1.1.1.201007130142 (sernet.gs.ui.rcp.main.feature.feature.jar 1.1.1.201007130142) 
    Verinice Anwendung 1.1.1.201007021358 (sernet.gs.ui.rcp.main.feature.feature.jar 1.1.1.201007021358) 
    Cannot satisfy dependency: 
    From: Verinice Anwendung 1.1.1.201007021358 (sernet.gs.ui.rcp.main.feature.feature.group 1.1.1.201007021358) 
    To: sernet.gs.ui.rcp.main.feature.feature.jar [1.1.1.201007021358] 
    Cannot satisfy dependency: 
    From: Verinice Anwendung 1.1.1.201007130142 (sernet.gs.ui.rcp.main.feature.feature.group 1.1.1.201007130142) 
    To: sernet.gs.ui.rcp.main.feature.feature.jar [1.1.1.201007130142] 
    Cannot satisfy dependency: 
    From: verinice 1.1.1 (sernet.gs.ui.rcp.main.product 1.1.1) 
    To: sernet.gs.ui.rcp.main.feature.feature.group [1.1.1.201007021358] 

回答

8

您需要構建產品的新版本。

p2區分什麼是「安裝」和什麼是「安裝的東西所需」。您的產品sernet.gs.ui.rcp.main.product是安裝的東西。其他一切都是必需的。 「檢查更新」正在尋找sernet.gs.ui.rcp.main.product的新版本。

通過安裝該功能,您將其添加到安裝的事物列表中(而不是僅安裝所需的東西)。但是,您仍然擁有對該功能的特定版本有要求的原始產品。該要求與新版本的功能相沖突。

這就在日食論壇上提出了一個fewtimes。你可能對我寫的blog post感興趣。

+0

我不知道我是否可以將新版本的產品本身添加到我的p2更新站點。 – 2010-07-14 07:12:53

+2

您應該能夠在p2中將產品作爲元數據中的另一個可安裝單元。只需增加產品文件中的版本並再次運行構建。 – 2010-07-14 17:15:53

+0

謝謝,在增加myapp.product p2中的產品版本後,更新可以正常工作 - 已被接受! – 2010-07-15 10:00:54

相關問題