Eclipse plugin 用于从更新站点下载eclipse插件的工具

Eclipse plugin 用于从更新站点下载eclipse插件的工具,eclipse-plugin,mirroring,p2,Eclipse Plugin,Mirroring,P2,我需要将eclipse插件安装到未连接到Internet的机器上,并且我找不到用于本地安装的dist 是否有从更新站点下载插件并创建本地安装档案(或本地更新站点)的工具?传闻说你可以用eclipse来实现这一点,但我找不到任何关于如何实现这一点的信息。你可能会觉得有用,尽管它可能比你所需要的更重。你可以使用(或)镜像远程元数据和工件存储库 下面是本地镜像Galileo工件存储库的示例命令: eclipse\eclipsec.exe -nosplash -verbose -application

我需要将eclipse插件安装到未连接到Internet的机器上,并且我找不到用于本地安装的dist

是否有从更新站点下载插件并创建本地安装档案(或本地更新站点)的工具?传闻说你可以用eclipse来实现这一点,但我找不到任何关于如何实现这一点的信息。

你可能会觉得有用,尽管它可能比你所需要的更重。

你可以使用(或)镜像远程元数据和工件存储库

下面是本地镜像Galileo工件存储库的示例命令:

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/
(第一个命令镜像元数据,第二个镜像工件。命令应位于windows中的一行上)

运行这些命令后,可以将
文件:d:/temp/galileo
用作本地镜像


或者,您可以使用,它允许您指定要镜像的可安装单元(插件或功能)。注意:指定功能时,不要忘记使用
.feature.group
后缀)

现在还支持使用tycho插件在maven中镜像p2站点:

其优点之一是,您可以非常精确地指定要镜像的可安装单元,对于哪些os/ws/arch

例如,要镜像EclipseIndigo,您可以使用以下
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>

4.0.0
镜像
靛蓝镜
1.0.0-SNAPSHOT
聚甲醛
0.16.0
org.apache.maven.plugins
maven依赖插件
2.5
org.eclipse.tycho
tycho-p2-repository-plugin
${tycho.version}
org.eclipse.tycho.extras
tycho-p2-extras-plugin
${tycho.version}
准备包装
镜子
http://ftp.sh.cvut.cz/MIRRORS/eclipse/releases/indigo/
p2
${project.build.directory}/repository
假的
真的
真的
假的
假的
真的
真的
真的
真的

不清楚这里的maven-2连接是什么。您是否遗漏了一些背景信息,或者应该将其标记为“eclipse”?很抱歉,标签被弄乱了。下面@PeterŠtibraný的回答似乎不起作用,至少在某些情况下,对于eclipse Kepler来说是这样。您能检查一下这是否仍然适用于您吗?老实说,我仍然不确定它到底是如何工作的:是只镜像工件并让P2 Publisher生成元数据,还是同时镜像工件和元数据。当你成功时,请分享你的发现。谢谢。更新的回答:当我运行这两个命令(镜像元数据、镜像存储库)时,我得到了供本地使用的正确更新站点。我使用镜像工件命令进行了测试,并在本地使用下载的文件,效果非常好。还没有完成蚂蚁的任务。感谢Peter的帮助。我尝试过这样做,Eclipse要求我批准许可证,但在那之后,它试图在在线存储库中查找原始文件-因此,这不起作用@彼得·什蒂布拉恩,请帮忙…@einpoklum:对不起,我帮不了你,我不再使用Eclipse了。试着在这里问一个新问题,这样就有更多的细节了,也许有人能帮上忙。