2016-04-05 23 views
1

eclipseプラグインプロジェクトのビルドに「Tycho」(Maven)を使用しています。解決できないビルド拡張:Plugin org.eclipse.tycho:tycho-maven

Unresolveableビルド拡張子:

は、私はエラーを取得していますプラグインorg.eclipse.tycho:ティコ-mavenの-プラグイン:0.22.0または解決できませんでしたその依存関係の1つを:に失敗しました。 org.eclipse.tychoのアーティファクト記述子を読む:tycho-maven-plugin:jar:0.22.0:artifactを転送できませんでしたorg.eclipse.tycho:tycho-maven-plugin:pom:0.22.0 from/to central(https://repo.maven.apache.org/maven2) :接続タイムアウト - > [ヘルプ2]

POM .xmlファイルは次のようになります

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 
<modelVersion>4.0.0</modelVersion> 
<groupId>tycho_example</groupId> 
<artifactId>com.codeandme.tycho.plugin</artifactId> 
<version>1.0.0-SNAPSHOT</version> 
<packaging>pom</packaging> 

<properties> 
    <tycho.version>0.22.0</tycho.version> 
</properties> 

<repositories> 
    <!-- add Mars repository to resolve dependencies --> 
    <repository> 
    <id>Mars</id> 
    <layout>p2</layout> 
    <url>http://download.eclipse.org/releases/mars/</url> 
    </repository> 
</repositories> 

<build> 
    <plugins> 
    <plugin> 
    <!-- enable tycho build extension --> 
    <groupId>org.eclipse.tycho</groupId> 
    <artifactId>tycho-maven-plugin</artifactId> 
    <version>${tycho.version}</version> 
    <extensions>true</extensions> 
    </plugin> 
    </plugins> 
</build> 
</project> 
+0

は、プロキシの背後にありますか? – Tunaki

+0

いいえ私はプロキシを使用していません –

+0

アーティファクトがhttps://repo.maven.apache.org/maven2/org/eclipse/tycho/tycho-maven-plugin/0.22.0/に存在するため、これは正常ではありません。エラーメッセージは* connect timed out *です。これは何かがMavenのダウンロードを妨げていることを意味します。 – Tunaki

答えて

1

あなたの問題が解決されたと確信しています。ただし、同じエラーが発生した他の人には、解決策は次のようになります。 親pom.xmlファイルにタグ<pluginManagement>を含めます。<pluginManagement>は、すべてのプロジェクトmodules.Hereで同じプラグインの設定を共有する唯一の方法は、サンプル親pom.xmlファイルである

<build> 
     <pluginManagement> 
     <plugins> 
      <plugin> 
       <groupId>${tycho-groupid}</groupId> 
       <artifactId>tycho-maven-plugin</artifactId> 
       <version>${tycho-version}</version> 
       <extensions>true</extensions> 
      </plugin> 
      <plugin> 
       <groupId>${tycho-groupid}</groupId> 
       <artifactId>target-platform-configuration</artifactId> 
       <version>${tycho-version}</version> 
       <configuration> 
        <resolver>p2</resolver> 
        <environments> 
         <environment> 
          <os>win32</os> 
          <ws>win32</ws> 
          <arch>x86</arch> 
         </environment> 
         <environment> 
          <os>macosx</os> 
          <ws>cocoa</ws> 
          <arch>x86_64</arch> 
         </environment> 
         <environment> 
          <os>linux</os> 
          <ws>gtk</ws> 
          <arch>x86_64</arch> 
         </environment> 
        </environments> 
       </configuration> 
      </plugin> 
     </plugins> 
     </pluginManagement> 
    </build> 
関連する問題