2017-05-26 17 views
3

Eclipseで簡単なMavenプロジェクトを作成しようとしています。 作成されましたが、Workspaceをビルドしているときにエラーが発生しています。 pom.xmlにもエラーがあります。EclipseでMAVENプロジェクトを作成中にエラーが発生しました(ケプラー)

<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>com.students.app</groupId> 
    <artifactId>students-application</artifactId> 
    <version>0.0.1-SNAPSHOT</version> 
    <build> 
    <plugins> 
     <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-resources-plugin</artifactId> 
      <version>2.5</version> 
     </plugin> 
    </plugins> 
    </build> 
</project> 

は、これは私が

Multiple annotations found at this line: 
    - Failure to transfer org.apache.maven.plugins:maven-resources- 
    plugin:pom:2.5 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-resources- 
    plugin:pom:2.5 from/to central (http://repo.maven.apache.org/maven2): 
    Connection refused: no further information to http:// 
    repo.maven.apache.org/maven2/org/apache/maven/plugins/maven- 
    resources-plugin/2.5/maven-resources-plugin-2.5.pom 
    - Plugin execution not covered by lifecycle configuration: 
    org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile 
    (execution: default-compile, phase: compile) 
    - Plugin execution not covered by lifecycle configuration: 
    org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile 
    (execution: default-testCompile, phase: test-compile) 
    - CoreException: Could not calculate build plan: Plugin 
    org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its 
    dependencies could not be resolved: Failed to read artifact descriptor for 
    org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2: 
    ArtifactResolutionException: Failure to transfer 
    org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 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-compiler-plugin:pom:2.3.2 from/to 
    central (http://repo.maven.apache.org/maven2): Connection refused: no 
    further information to http://repo.maven.apache.org/maven2/org/apache/ 
    maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler- 
    plugin-2.3.2.pom 

私は何をすべき次のようなエラーを取得しています私のpom.xml のですか?

+0

あなたはWindowsまたはLinuxですか? – Freeman

+0

私はWindowsで働いています – ShraddhaJ

+0

*常に*コマンドラインからプロジェクトをビルドしてから、IDEにインポートしようとしていることを確認してください。これにより、あなたの問題の大半が最初から排除されます。今は '〜/ .m2/settings.xml'ファイルにプロキシを設定する必要があるようです。 –

答えて

3

問題は「は.lastUpdated」あなたのダウンロードをブロックしている可能性があり、私のいくつかは、あなたは「 .lastUpdated」を削除し、Mavenプロジェクトを更新する必要があります。

{ユーザー} /を探します。2 /リポジトリ、あなたは*で.lastUpdated探し

によってこれを行うことができます すべて "* .lastUpdated" ファイルを削除%USERPROFILE%.m2その後、ファイルを削除したことのEclipse問題の

または一度日食からあなたのMavenプロジェクトを更新して行わ

cd %userprofile%\.m2\repository 
for /r %i in (*.lastUpdated) do del %i 

として報告しました。

+0

ありがとうございます。それは大きな助けとなりました。 – ShraddhaJ

関連する問題