2017-10-26 1 views
0

Bitte ich brauche Hilfe bei der Lösung eines Problems mit Spring und Eclipse. Ich habe versucht, einige andere Probleme zu lösen, aber dieses ist seltsam und ich konnte es nicht lösen.Probleme beim Erstellen von Webanwendung mit Spring und Eclipse

Ich versuche, eine Webanwendung mit Spring und Eclipse zu erstellen, aber es zeigt einen Fehler in der pom.xml-Datei. Ich habe die Datei pom.xml angehängt.

Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.18.1 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.18.1 from/to central (http://repo.maven.apache.org/maven2): null to http://repo.maven.apache.org/maven2/org/apache/maven/ plugins/maven-surefire-plugin/2.18.1/maven-surefire-plugin-2.18.1.pom"

The attached file

Dies ist der vollständige Inhalt meiner pom;

http://maven.apache.org/xsd/maven-4.0.0.xsd "> 4.0.0

<groupId>com.userFront</groupId> 
<artifactId>userFront</artifactId> 
<version>0.0.1-SNAPSHOT</version> 
<packaging>jar</packaging> 

<name>UserFront</name> 
<description>User Frontend for Online Banking Project</description> 

<parent> 
    <groupId>org.springframework.boot</groupId> 
    <artifactId>spring-boot-starter-parent</artifactId> 
    <version>1.5.8.RELEASE</version> 
    <relativePath/> <!-- lookup parent from repository --> 
</parent> 

<properties> 
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> 
    <java.version>1.8</java.version> 
</properties> 

<dependencies> 
    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-web</artifactId> 
    </dependency> 

    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-test</artifactId> 
     <scope>test</scope> 
    </dependency> 
</dependencies> 

<build> 
    <plugins> 
     <plugin> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-maven-plugin</artifactId> 
     </plugin> 
    </plugins> 
    <pluginManagement> 
     <plugins> 
      <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--> 
      <plugin> 
       <groupId>org.eclipse.m2e</groupId> 
       <artifactId>lifecycle-mapping</artifactId> 
       <version>1.0.0</version> 
       <configuration> 
        <lifecycleMappingMetadata> 
         <pluginExecutions> 
          <pluginExecution> 
           <pluginExecutionFilter> 
            <groupId> 
             org.apache.maven.plugins 
            </groupId> 
            <artifactId> 
             maven-compiler-plugin 
            </artifactId> 
            <versionRange> 
             [3.1,) 
            </versionRange> 
            <goals> 
             <goal>testCompile</goal> 
            </goals> 
           </pluginExecutionFilter> 
           <action> 
            <ignore></ignore> 
           </action> 
          </pluginExecution> 
         </pluginExecutions> 
        </lifecycleMappingMetadata> 
       </configuration> 
      </plugin> 
     </plugins> 
    </pluginManagement> 
</build> 

+0

Einige Ihrer pom installieren. Bitte kopiere den Inhalt in deiner Frage oder mit pastebin.org;) –

Antwort

0

Rechts auf Ihr Projekt klicken. Wählen Sie Maven = => Update Project ==> Select (Aktivieren Kontrollkästchen) Force Update von Snapshots/Veröffentlichung

0

Sie müssen nur diese Schritte folgen:.

Rechts auf pro Klicken Sie ject: Run (A) -> Maven sauber

Recht auf Ihrem Projekt Klicken: Run (A) -> Maven

Gleiche wie diese fehlen question

Verwandte Themen