ツールのダウンロードeclipseプラグインからのアップデートを実現
-
12-09-2019 - |
質問
いるのをインストールeclipseプラグインマシンインターネットに接続していないとして選んだdist利用のために現地インストールします。
あるツールのダウンロードするプラグインからの更新サイトの作成現地据付アーカイブまたは地域の更新サイト)?風評ということができeclipseが、皆さんの為に情報をどうやって実行するかである。
解決
利用できる P2鏡ツール ( P2ミラーガリレオ計画書)をミラーリモートメタデータ資料リポジトリ
ここではサンプルコマンドをミラーガリレオ資料リポジトリの現地:
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鏡のAntタスク, きのご指定の取付台(プラグインや特徴)を鏡のようになります。注意:を指定する場合の特徴を忘れてはならない使用 .feature.group
suffix)
他のヒント
ます。http://ウィキ
今ティコのプラグインを使用してのmavenでミラーリングP2サイトのサポートもあります。 eclipse.org/Tycho/Additional_Toolsする
利点の1つは、非常に正確にあなたが、ミラーリングしたいインストール何団結指定することができるということであるため、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>
所属していません StackOverflow