2009-08-10 26 views
9

インターネットに接続されていないマシンにEclipseプラグインをインストールする必要があり、ローカルインストールにdistを見つけることができません。更新サイトからEclipseプラグインをダウンロードするためのツール

アップデートサイトからプラグインをダウンロードし、ローカルインストールアーカイブ(またはローカルアップデートサイト)を作成するためのツールはありますか?噂は、あなたが日食でこれを行うことができると言いますが、私はそれを行う方法に関する情報を見つけることはできません。

+0

次何のmaven-2接続をクリアしていないあなたが使用できるEclipseのインディゴをミラーリングする例えば

...、何インストールは、OS/WS /アーチいるため、ミラーリングしたい団結指定 ここにある。あなたが残した背景情報はありますか?これは "eclipse"とタグ付けされるべきですか? –

+0

タグを駄目にしました。申し訳ありません。 – mafro

+0

少なくとも、いくつかのケースでは、Eclipse Keplerで@PeterŠtibranýの答えがうまくいかないようです。これがまだあなたのために働くかどうか確認できますか? – einpoklum

答えて

12

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/ 

(。まず、コマンドミラーのメタデータ、第二のミラーアーティファクトコマンドウィンドウで1行にする必要があります)

次のコマンドを実行した後ローカルミラーとしてfile:d:/temp/galileoを使用できます。

また、P2 Mirror Ant Taskを使用すると、インストール可能なユニット(プラグインまたは機能)をミラー化するように指定できます。注意:機能を指定する場合、.feature.groupサフィックスを使用することを忘れないでください)

+0

正確に私が探していたツール - ありがとう! – mafro

+0

正直言って、アーティファクトのみをミラー化してP2 Publisherにメタデータを生成させるか、アーティファクトとメタデータの両方をミラーリングするかどうかはまだ正確にはわかりません。成功したときにあなたの発見を共有してください。ありがとうございました。 –

+1

答えが更新されました:私は両方のコマンド(ミラーメタデータ、ミラーリポジトリ)を実行すると、私はローカル用の正しい更新サイトを取得しました。私はhttp://download.eclipse.org/tools/mylyn/update/weekly/e3.4でテストしました –

2

に今ティコのプラグインを使用してのmavenでミラーリングP2サイトのサポートもあります:http://wiki.eclipse.org/Tycho/Additional_Tools

利点の一つは、非常に正確にあなたができることです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> 
関連する問題