2017-12-19 7 views
0

統合maven eclipseプラグイン(m2e)に問題があります。私は日食の酸素とmaven 3.5.2を使用しています。 Eclipseは、プロジェクトのpom.xmlに記述されている依存関係をダウンロードしておらず、プロジェクトを構築していません。しかし、私がコンソールコマンドを使ってプロジェクトをビルドすれば、それは完璧に動作しています!MavenはEclipseではなくコンソールで動作しています。どうして?

まず、私はそれがプロキシの問題であると思ったが、私はそのように日食にプロキシを設定した:

eclipse network connection dialog

私はまた、「アクティブプロバイダ」を変更しようとしましたが、何も働きました。

次の試行では、プロビジョニング情報をmaven settings.xmlに入れてみましたが、そのトリックはしませんでした。

私のsettings.xmlは、以下のようになります。

<?xml version="1.0" encoding="UTF-8" standalone="no"?> 
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0      
http://maven.apache.org/xsd/settings-1.0.0.xsd"> 

<proxies> 
<proxy> 
    <id>msgProxy</id> 
    <active>true</active> 
    <protocol>http</protocol> 
    <host>i.do.not.tell.you</host> 
    <port>1234</port> 
    <nonProxyHosts>localhost|127.0.0.1</nonProxyHosts> 
</proxy> 
</proxies> 
<profiles/> 


</settings> 

し、ダイアログボックスには、そのように見える日食Mavenのインストール:

maven installation dialog

私は原型から新しい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): 
connect timed out 
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): 
connect timed out 

error message in eclipse, while fetching maven archetypes

...

​​

私はプロジェクトを更新するために起動した場合、何かをダウンロードするには、これまでのためのMavenニーズを思わあなたは私のために残されたアドバイスはありますか?はいの場合、私は非常に感謝しています。

ありがとうございます。

+0

'window-> preferences-> maven-> installations'には何がありますか?あなたがcoorporateネットワークの下にいる場合は、HTTP(s) – Edwin

+0

のユーザーとパスワードが必要な場合があります。https部分のユーザー資格情報が必要な場合は確信していますが、確かにhttp部分については。私はEclipseのMavenインストールダイアログのスクリーンショットも追加しました。 – F4k3d

+0

それでは、CLIから、同じsettings.xmlと同じバージョンのmvnを試してみましたか?そして、あなたが 'あなたのプロジェクト - >右クリック - > maven - >更新プロジェクト'の日食に入ったら、何も起こらないのですか? – Edwin

答えて

0

問題が見つかりました。 私達は私達の会社に独自のネクサスを持っています。そこで、私はsettings.xmlにリポジトリを追加しました... 問題が解決し、あなたのおかげでありがとう

関連する問題