2016-04-05 12 views
1

Ich verwende 'Tycho' (Maven) für Eclipse-Plugin-Projekt erstellen.Unresolvable Build-Erweiterung: Plugin org.eclipse.tycho: tycho-maven

Ich erhalte die Fehlermeldung:

Unresolveable build Erweiterung: Plugin org.eclipse.tycho: tycho-Maven-Plugin: 0.22.0 oder eine ihrer Abhängigkeiten nicht aufgelöst werden kann: Fehler beim Artefaktdeskriptor für org.eclipse.tycho lesen: tycho-maven-plugin: jar: 0.22.0: Konnte Artefakt nicht übertragen org.eclipse.tycho: tycho-maven-plugin: pom: 0.22.0 von/nach central (https://repo.maven.apache.org/maven2) : connect timed out -> [Hilfe 2]

POM .xml-Datei sieht aus wie

<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

Probe Mutter modules.Here zu teilen? – Tunaki

+0

Nein, ich verwende keinen Proxy –

+0

Nun, das ist nicht normal, da das Artefakt existiert https://repo.maven.apache.org/maven2/org/eclipse/tycho/tycho-maven-plugin/0.22.0/. Die Fehlermeldung lautet * connect timed out *, was bedeutet, dass Maven das Herunterladen verhindert. – Tunaki

Antwort

1

Ich bin sicher, dass Ihr Problem gelöst ist. Für andere Benutzer mit demselben Fehler lautet die Lösung jedoch: Fügen Sie das Tag <pluginManagement> in der übergeordneten Datei pom.xml ein.<pluginManagement> ist nur ein Weg, um die gleiche Plugin-Konfiguration über alle Ihr Projekt Sind Sie hinter einem Proxy pom.xml Datei

<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>