2013-04-17 17 views
2

如果這是由於超時,然後我怎樣才能建立一個內部鏡子,以提高性能和降低超時的風險如何爲mvn tycho插件設置eclipse構件的本地鏡像?

問題 Maven構建下載蝕經由第谷插件和時間P2工件出生成過程中。

[ERROR] Internal error: org.eclipse.tycho.core.osgitools.OsgiManifestParserException: 
Exception parsing OSGi MANIFEST /opt/atlassian/bamboo-agent-home/xml-data/build-dir/m2repo 
/p2/osgi/bundle/org.eclipse.swt/3.100.1.v4234e/org.eclipse.swt-3.100.1.v4234e.jar: 
error in opening zip file -> [Help 1] 

回答

3

Nexus Pro可以處理p2存儲庫,但我不認爲Nexus OSS可以。

  1. 創建P2存儲庫中的Nexus臨(網址http://download.eclipse.org/releases/juno/
  2. 中的Nexus創建P2存儲庫組臨
  3. 添加P2存儲庫到P2存儲庫組
  4. 修改您的settings.xml到在P2鏡像添加

第一反射鏡是行家,用於第谷蝕P2儲存庫中的第二

<mirrors> 
     <mirror> 
     <id>internal-repository</id> 
     <name>Maven Repository Manager running on repo.mycompany.com</name> 
     <url>http://localhost:8081/nexus/content/groups/public/</url> 
     <mirrorOf>*</mirrorOf> 
     </mirror> 
     <mirror> 
     <id>p2-repository</id> 
     <name>p2 Repository mirror</name> 
     <url>http://localhost:8081/nexus/content/groups/p2groups/</url> 
     <layout>p2</layout> 
     <mirrorOfLayouts>p2</mirrorOfLayouts> 
     <mirrorOf>*</mirrorOf> 
     </mirror> 
    </mirrors> 
+0

這也適用於Nexus OSS:Sonatype開源Nexus p2插件。將[nexus-p2-bridge-plugin和nexus-p2-repository-plugin](http://repository.sonatype.org)插件添加到您的Nexus實例以及[配置P2元數據生成器和P2聚合器生成器功能](https ://docs.sonatype.org/display/Nexus/Nexus+OSGi+Experimental+Features+-+P2+Repository+Plugin) –

+0

我遇到了Nexus(OSS 2.11.2-03)和自編譯的重大問題p2插件除了根組合的元數據外,它似乎沒有處理複合更新站點 如果按照建議操作並使用 *,那麼當嘗試從Nexus。我試圖手動添加它們,但這不是可維護的。 有沒有辦法解決這個問題?Nexus Pro是否處理得更好? –

+0

這裏的含義是什麼? – zygimantus

相關問題