2012-05-23 4 views
8

Maven이 포함되도록 JBoss Tools가 설치된 Java EE 용 최신 Eclipse를 사용하고 있습니다. 기존 Maven 프로젝트를 내 작업 영역으로 가져 와서 종속성을 업데이트하려고했지만 POM에 오류가 발생하여 일부 인수가 유효하지 않으며 이슈가 전송 될 수 없습니다. 실제로 서로 다른 두 가지 오류가 있으며 서로에 의존하고 있습니까? 다음을 확인할 수 있습니다. 서버를 사용할 수 있고 Eclipse 및 JBoss를 다시 설치하려고했습니다. 그래서 그 밖의 무엇이 없습니까? 그것이 이클립스 심지어 후 예외를 (캐싱 때문에 내 저장소 폴더 만 .pom.lastUpdated-파일ArtifactDescriptorException : 아티팩트 설명자 Maven 오류를 읽지 못했습니다.

Error resolving version for plugin 'org.apache.maven.plugins:maven-shade-plugin' from the repositories [local (C:\Users\Gregor.Gregs.m2\repository), central (http://repo1.maven.org/maven2)] : Plugin not found in any plugin repository

아무것도 실제로 없다

ArtifactDescriptorException: Failed to read artifact descriptor for edu.kit.aifb.ai2.sqsclient:sqsclient:jar:1.0.0: ArtifactResolutionException: Failure to transfer edu.kit.aifb.ai2.sqsclient:sqsclient:pom:1.0.0 from http://eorg-ai2.aifb.kit.edu:8081/nexus/content/repositories/releases was cached in the local repository, resolution will not be reattempted until the update interval of Beehive has elapsed or updates are forced. Original error: Could not transfer artifact edu.kit.aifb.ai2.sqsclient:sqsclient:pom:1.0.0 from/to Beehive (http://eorg-ai2.aifb.kit.edu:8081/nexus/content/repositories/releases): Invalid argument: getsockname to http://eorg-ai2.aifb.kit.edu:8081/nexus/content/repositories/releases/edu/kit/aifb/ai2/sqsclient/sqsclient/1.0.0/sqsclient-1.0.0.pom

은 나를 위해 당신에게

+0

nexus 서버가 잘 실행되고 중앙 및 기타 리포지토리를 프록시합니까? 그렇다면 .pom.lastUpdated 파일을 삭제 한 후 다시 시도 할 수 있습니까? – Raghuram

+0

예, 서버는 전체 프로젝트와 마찬가지로 훌륭하게 작동합니다. 다른 서버에서도 작동합니다. 또한 저장소를 가져 와서 내 폴더에 붙여 넣었고 프로젝트를 실행 중입니다. 그래서 메이븐은 괜찮을거야. 내 PC 이름에 점이있어서 문제가있을 수 있습니까? 그냥 두 번째 오류의 오류 보고서에 백 슬래시가 누락 된 것을 보았습니다. 그러나 .pom.lastUpdated 파일이 있으므로 그것은 중요하지 않습니다 ..? (삭제 된 .pom.lastUpdated 파일과 캐시도 삭제했습니다.) – temmink

답변

18

감사 원래 문제를 해결했습니다.)

right click on project -> maven -> update-project -> force to update snapshot/release -> OK. 

비슷한 p 흠집.

2

설정 파일 경로가 올바르게 가리키고 있는지 확인하십시오. 창 -> 환경 설정 -> 메이븐 -> 사용자 설정.

1

프로젝트 -> maven -> update-project -> 스냅 샷 업데이트를 강제 실행/release -> OK를 클릭하십시오.

나를 위해 일했습니다.

관련 문제