문제

인터넷에 연결되지 않은 컴퓨터에 Eclipse 플러그인을 설치해야하며 로컬 설치에 사용할 수있는 거리를 찾을 수 없습니다.

업데이트 사이트에서 플러그인을 다운로드하고 로컬 설치 아카이브 (또는 로컬 업데이트 사이트)를 만들 수있는 도구가 있습니까? 소문에 따르면 Eclipse 로이 작업을 수행 할 수는 있지만 수행 방법에 대한 정보는 찾을 수 없습니다.

도움이 되었습니까?

해결책

당신이 사용할 수있는 P2 미러 도구 (또는 갈릴레오 문서의 P2 미러) 원격 메타 데이터 및 아티팩트 저장소를 미러링합니다.

다음은 Galileo Artifacts 저장소를 로컬로 미러링하는 샘플 명령입니다.

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의 한 줄에 있어야합니다)

이 명령을 실행하면 사용할 수 있습니다 file:d:/temp/galileo 로컬 거울로.

또는 사용할 수 있습니다 P2 미러 개미 작업,이를 통해 미러에 설치 가능한 장치 (플러그인 또는 기능)를 지정할 수 있습니다. 참고 : 기능을 지정할 때 사용하는 것을 잊지 마십시오. .feature.group 접미사)

다른 팁

이제 Tycho 플러그인을 사용하여 Maven에서 P2 사이트 미러링에 대한 지원도 있습니다. http://wiki.eclipse.org/tycho/additional_tools

장점 중 하나는 OS/WS/Arch, ... 미러를 원하는 설치 가능한 유니폼을 매우 정확하게 지정할 수 있다는 것입니다.

예를 들어 Eclipse Indigo를 미러링하려면 다음을 사용할 수 있습니다. 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>

당신은 찾을 수 있습니다 맞춤형 일식 패키지 구축 도움이 될 것입니다. 아마도 당신이 필요한 것보다 조금 더 헤비급 일 것입니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top