2012-10-06 7 views
1

외부 jar 파일이있는 in-project 리포지토리가있는 maven 프로젝트가 있습니다. 설치 명령을 사용하여 in-porject 저장소 에 jar 파일을 설치하고 저장소에 체크인하면 jar 파일이 설치되었습니다 또한 pom 파일에 종속성 구성을 추가했습니다. 그러나 mvn 컴파일 파일을 실행할 때.Maven이 로컬 종속성을 해결할 수 없음

:

 <repository> 
    <id>repo</id> 
    <releases> 
     <enabled>true</enabled> 
     <checksumPolicy>ignore</checksumPolicy> 
    </releases> 
    <snapshots> 
     <enabled>false</enabled> 
    </snapshots> 
    <url>file://${project.basedir}/repo</url> 
</repository> 

이 POM에 의존성이 오류 메시지입니다

<dependency> 
     <groupId>Com.RubineEngine.GesturePoints</groupId> 
     <artifactId>Com-RubineEngine-GesturePoints</artifactId> 
     <version>1.0-SNAPSHOT</version> 
    </dependency> 

입니다 : 나는 MVN이이 폼은 조각이다 종속성

를 해결할 수없는 오류를 얻을

[정보] 최종 메모리 : 6M/309M

[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal on project com-boundingbox-box: Could not resolve 
dependencies for project com.boundingbox.box:com-boundingbox-box:jar:1.0-SNAPSH 
OT: Could not find artifact Com.RubineEngine.GesturePoints:Com-RubineEngine-Gest 
urePoints:jar:1.0-SNAPSHOT -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit 
ch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please rea 
d the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso 
lutionException 

누구든지이 오류에 대한 제안 사항이 있습니까?

는 U 사용 후 오류 메시지이고, X는 시스템이 두 개의 저장소 사이에 혼동지고처럼

[DEBUG] ======================================================================= 
[DEBUG] Using connector WagonRepositoryConnector with priority 0 for file://C:\U 
sers\FAISAL\Desktop\disaster\com-initialtheta-theta/repo 
Downloading: file://C:\Users\FAISAL\Desktop\disaster\com-initialtheta-theta/repo 
/Com/RubineEngine/GesturePoints/Com-RubineEngine-GesturePoints/1.0-SNAPSHOT/mave 
n-metadata.xml 
[DEBUG] Writing resolution tracking file C:\Users\FAISAL\.m2\repository\Com\Rubi 
neEngine\GesturePoints\Com-RubineEngine-GesturePoints\1.0-SNAPSHOT\resolver-stat 
us.properties 
[DEBUG] Using connector WagonRepositoryConnector with priority 0 for http://repo 
.typesafe.com/typesafe/releases/ 
Downloading: http://repo.typesafe.com/typesafe/releases/Com/RubineEngine/Gesture 
Points/Com-RubineEngine-GesturePoints/1.0-SNAPSHOT/maven-metadata.xml 
[DEBUG] Writing resolution tracking file C:\Users\FAISAL\.m2\repository\Com\Rubi 
neEngine\GesturePoints\Com-RubineEngine-GesturePoints\1.0-SNAPSHOT\resolver-stat 
us.properties 
[DEBUG] Could not find metadata Com.RubineEngine.GesturePoints:Com-RubineEngine- 
GesturePoints:1.0-SNAPSHOT/maven-metadata.xml in typesafe (http://repo.typesafe. 
com/typesafe/releases/) 
[DEBUG] Could not find metadata Com.RubineEngine.GesturePoints:Com-RubineEngine- 
GesturePoints:1.0-SNAPSHOT/maven-metadata.xml in lib (file://C:\Users\FAISAL\Des 
ktop\disaster\com-initialtheta-theta/repo) 
[DEBUG] Skipped remote update check for Com.RubineEngine.GesturePoints:Com-Rubin 
eEngine-GesturePoints:1.0-SNAPSHOT/maven-metadata.xml, already updated during th 
is session. 
[DEBUG] Failure to find Com.RubineEngine.GesturePoints:Com-RubineEngine-GestureP 
oints:1.0-SNAPSHOT/maven-metadata.xml in http://repo.typesafe.com/typesafe/relea 
ses/ was cached in the local repository, resolution will not be reattempted unti 
l the update interval of typesafe has elapsed or updates are forced 
[DEBUG] Skipped remote update check for Com.RubineEngine.GesturePoints:Com-Rubin 
eEngine-GesturePoints:1.0-SNAPSHOT/maven-metadata.xml, already updated during th 
is session. 
[DEBUG] Failure to find Com.RubineEngine.GesturePoints:Com-RubineEngine-GestureP 
oints:1.0-SNAPSHOT/maven-metadata.xml in file://C:\Users\FAISAL\Desktop\disaster 
\com-initialtheta-theta/repo was cached in the local repository, resolution will 
not be reattempted until the update interval of lib has elapsed or updates are 
forced 

이 보이는 전환됩니다.

답변

2
  1. 확인의의 groupId/artifactId를가 (프로젝트의 저장소에 libs와의 치어 파일에 올바르게 설정되어있는 경우 즉, $ {project.baseDir} \ REPO \ 컴 .... \ 1.0-SNAPSHOT \ Com-RubineEngine-GesturePoints.pom)
  2. "lib의 업데이트 간격이 경과되거나 업데이트가 강제 적용될 때까지는 해상도를 다시 시도하지 않습니다."오류가 발생하면 로컬 저장소에서 폴더를 삭제해야합니다. 일반적으로 ~/.m2), 즉 ~/.m2/Com/RubineEngine입니다.
+0

감사합니다. 나중에 몇 시간의 혼란스럽고 혼란스러운 몇 시간이 지나면 내 문제가 해결되었습니다. No 2.는 나를위한 이유였습니다. – Thupten

1

변경 가능한 스냅 샷을 true로 설정해보십시오.

<snapshots> 
     <enabled>true</enabled> 
</snapshots> 
+0

변경된 스냅 샷을 true로 설정했지만 컴파일을 실행해도 여전히 동일한 오류가 발생합니다. 가능한 다른 제안이 있으십니까? –

+0

'mvn help : effective-pom'을 실행하고 repo의 URL이 올바른 것인지 확인하십시오. –

+0

mvn help : effective-pom 명령을 사용할 때 빌드 성공 메시지가 나타납니다. 희망이 당신이 제안한 것입니다 –

관련 문제