2017-07-07 14 views
1

Eclipse Oxygenでmaven-archtypeプロジェクトを作成中に次のエラーが発生します。プロジェクトを作成中にEclipse OxygenのMavenで「アーキタイプを解決できませんでした」エラー

Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:1.0 from any of the configured repositories. 
Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 
Failure to transfer org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from https://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.archetypes:maven-archetype-webapp:pom:1.0 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org 
Failure to transfer org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from https://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.archetypes:maven-archetype-webapp:pom:1.0 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org 

私は次のリンクを使用して、私のブラウザから完全によくMavenのリポジトリにアクセスすることができます。私は私のオフィスのラップトップを使用していますし、そのは、安全なネットワークの後ろに座って

https://repo.maven.apache.org/maven2/ 

他の同様の質問についての回答を参考にして、私はすでにsettings.xml.m2というディレクトリに配置しようとしました。私はどのプロキシを使うのか分かりませんので、私はusernamepasswordというタグのシステム資格情報を入れます。しかし、これはうまくいかなかった。

また、Eclipse Maven設定でMaven_Archtypeを追加しようとしました。まだ動かない。

誰もこの問題に直面しましたか?その解決策を私に指摘してください。

答えて

1

これは通常、KeplerやMarsのような古いバージョンのEclipseをインストールしてから新しいバージョンを別途インストールすると発生します。この新しいバージョンは古いバージョンのディレクトリにアクセスします。 1. ----> C:\ Users \ Irfan(ユーザー名) 2.これら2つのフォルダ ".eclipse"と ".m2"を削除します。 3.新しいバージョンのEclipseを再インストールします。

関連する問題