我需要將eclipse插件安裝到未連接到Internet的計算機上,並且找不到用於本地安裝的dist。從更新站點下載eclipse插件的工具
是否有工具從更新站點下載插件並創建本地安裝存檔(或本地更新站點)?謠言說你可以用eclipse做到這一點,但我無法找到任何有關如何做到這一點的信息。
我需要將eclipse插件安裝到未連接到Internet的計算機上,並且找不到用於本地安裝的dist。從更新站點下載eclipse插件的工具
是否有工具從更新站點下載插件並創建本地安裝存檔(或本地更新站點)?謠言說你可以用eclipse做到這一點,但我無法找到任何有關如何做到這一點的信息。
您可以使用P2 mirror tool(或P2 mirror in Galileo documentation)來鏡像遠程元數據和工件存儲庫。
下面是示例命令鏡像伽利略工件本地存儲庫:(首先命令鏡元數據,第二反射鏡的工件命令應該在窗口中的一個線)
eclipse\eclipsec.exe -nosplash -verbose
-application org.eclipse.equinox.p2.metadata.repository.mirrorApplication
-source http://download.eclipse.org/releases/galileo
-destination file:d:/temp/galileo/
eclipse\eclipsec.exe -nosplash -verbose
-application org.eclipse.equinox.p2.artifact.repository.mirrorApplication
-source http://download.eclipse.org/releases/galileo
-destination file:d:/temp/galileo/
在運行這些命令之後,您可以使用file:d:/temp/galileo
作爲本地鏡像。
或者,您可以使用P2 Mirror Ant Task,它允許您指定鏡像的可安裝單元(插件或功能)。注:指定功能時,不要忘記使用.feature.group
後綴)
正是我正在尋找的工具 - 謝謝! – mafro 2009-08-11 08:19:58
說實話,我仍然不確定它是如何工作的:是否只鏡像工件,讓P2 Publisher生成元數據,還是鏡像工件和元數據。當你成功時,請分享你的發現。謝謝。 – 2009-08-11 08:21:41
更新回答:當我運行這兩個命令(鏡像元數據,鏡像庫)時,我得到了正確的更新站點供本地使用。我測試了http://download.eclipse.org/tools/mylyn/update/weekly/e3.4 – 2009-08-11 10:09:48
你可能會發現Building a custom Eclipse package有幫助,雖然它可能是一個更重量級,你需要什麼。
現在有也是P2網站使用第谷插件,Maven的鏡像支持:http://wiki.eclipse.org/Tycho/Additional_Tools
其中一個好處是,你可以非常精確地指定要鏡像,爲此OS/WS /拱,...什麼安裝團結
例如,以反映Eclipse的靛藍您可以使用下面pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>mirroring</groupId>
<artifactId>indigo-mirror</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<tycho.version>0.16.0</tycho.version>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho.version}</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-p2-extras-plugin</artifactId>
<version>${tycho.version}</version>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>mirror</goal>
</goals>
</execution>
</executions>
<configuration>
<source>
<!-- source repositories to mirror from -->
<repository>
<url>http://ftp.sh.cvut.cz/MIRRORS/eclipse/releases/indigo/</url>
<layout>p2</layout>
<!-- supported layouts are "p2-metadata", "p2-artifacts", and "p2" (for joint repositories; default) -->
</repository>
</source>
<!-- The destination directory to mirror to. -->
<destination>${project.build.directory}/repository</destination>
<!-- Whether only strict dependencies should be followed. -->
<!-- "strict" means perfect version match -->
<followStrictOnly>false</followStrictOnly>
<!-- Whether or not to follow optional requirements. -->
<includeOptional>true</includeOptional>
<!-- Whether or not to follow non-greedy requirements. -->
<includeNonGreedy>true</includeNonGreedy>
<!-- include the latest version of each IU -->
<latestVersionOnly>false</latestVersionOnly>
<!-- don't mirror artifacts, only metadata -->
<mirrorMetadataOnly>false</mirrorMetadataOnly>
<!-- whether to compress the content.xml/artifacts.xml -->
<compress>true</compress>
<!-- whether to append to the target repository content -->
<append>true</append>
<!-- whether to mirror pack200 artifacts also. Available since tycho-extras 0.17.0 -->
<verbose>true</verbose>
<includePacked>true</includePacked>
</configuration>
</plugin>
</plugins>
</build>
</project>
並不清楚行家-2連接 在這兒。是否有一些你遺漏的背景信息,或者是否應該標記爲「eclipse」? – 2009-08-10 21:33:09
搞砸了標籤,對不起。 – mafro 2009-08-11 07:54:10
看來@PeterŠtibraný的答案不起作用,至少在某些情況下和Eclipse開普勒。你可以檢查一下這是否仍然適用於你? – einpoklum 2014-01-09 15:46:13