2017-12-19 9 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> 

일식 받는다는 설치 Dialoge, 즉 다음과 같습니다

maven installation dialog

내가 원형에서 새 메이븐 프로젝트를 만들려고하면 이 오류 메시지가 나타납니다.

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

나는 프로젝트를 업데이트하기 시작하면,

Long download process

당신은 어떤 조언 나를 위해 왼쪽해야합니까 ... 혹시 뭔가를 다운로드 할 수 받는다는 요구를 보인다? 그렇다면 매우 감사하게 생각합니다.

미리 감사드립니다.

+0

'windows-> preferences-> maven-> installations'에 무엇이 있습니까? 그리고 coorporate 네트워크를 사용하고 있다면 http : // – Edwin

+0

에 대한 사용자 및 암호가 필요할 수도 있습니다. 확실하지 않습니다. https 부분에 대한 사용자 자격 증명이 필요하지만 http 부분에 대해서는 확신 할 수 없습니다. . Eclipse에서 Maven 설치 대화 상자의 스크린 샷을 추가했습니다. – F4k3d

+0

그래서 CLI에서 동일한 settings.xml 및 동일한 버전의 mvn을 사용해 보았습니다. 그렇습니까? 그리고 당신이'당신의 프로젝트 -> 마우스 오른쪽 버튼 -> maven -> 업데이트 프로젝트 '에서 일식에 들어가면 아무 일도 일어나지 않습니까? – Edwin

답변

0

문제점을 발견했습니다. 우리 회사에 넥서스가 있습니다. 그래서, 내 settings.xml에 저장소를 추가했습니다 ... 문제가 해결되어 도움을 주셔서 감사합니다.