2012-09-28 2 views
3

com.android.ide.eclipse.adt 번들에 종속성이있는 플러그인 + 기능을 빌드하려고합니다.Tycho가 Android Development Tools 번들을 찾을 수 없습니다.

[INFO] Adding repository http://dl-ssl.google.com/android/eclipse 
[INFO] Fetching site.xml (0B of 1,8kB at 0B/s) from http://dl-ssl.google.com/android/eclipse/ 
[INFO] 1 operation remaining. 
[INFO] Fetching site.xml (1,8kB of 1,8kB at 0B/s) from http://dl-ssl.google.com/android/eclipse/ 
[INFO] Adding repository http://dl-ssl.google.com/android/eclipse 
[INFO] Resolving dependencies of MavenProject: me.fixpoint.eared:me.fixpoint.eared.plugin:0.0.4-SNAPSHOT @ D:\Projects\eared\plugin\pom.xml 
[INFO] Cannot complete the request. Generating details. 
[INFO] Cannot complete the request. Generating details. 
[INFO] {osgi.ws=win32, osgi.os=win32, osgi.arch=x86_64, org.eclipse.update.install.features=true} 
[ERROR] Cannot resolve project dependencies: 
[ERROR] Software being installed: me.fixpoint.eared 0.4.0 
[ERROR] Missing requirement: me.fixpoint.eared 0.4.0 requires 'bundle com.android.ide.eclipse.adt 0.0.0' but it could not be found 
[ERROR] 
[ERROR] Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from me.fixpoint.eared 0.4.0 to bundle com.android.ide.eclipse.adt 0.0.0.", "No solution found because the problem is unsatisfiable."] -> [Help 1] 
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from me.fixpoint.eared 0.4.0 to bundle com.android.ide.eclipse.adt 0.0.0.", "No solution found because the problem is unsatisfiable."] 

나는이 스레드의 조언 다음 시도했다 : : https://groups.google.com/group/adt-dev/tree/browse_frm/month/2012-07/39c71d32169b9569?rnum=51&_done=/group/adt-dev/browse_frm/month/2012-07?&pli=1과 P2를 만드는

<repository> 
    <id>adt</id> 
    <layout>p2</layout> 
    <url>http://dl-ssl.google.com/android/eclipse</url> 
</repository> 

이제 빌드가이 오류와 함께 실패 : 그 동안 나는 마스터 pom.xml에 ADT 저장소를 추가 한

[INFO] Adding repository http://dl.dropbox.com/u/1236385/adt 
[INFO] Fetching content.jar (0B of 18,09kB at 0B/s) from http://dl.dropbox.com/u/1236385/adt/ 
[INFO] 1 operation remaining. 
[INFO] Fetching content.jar (3,97kB of 18,09kB at 0B/s) from http://dl.dropbox.com/u/1236385/adt/ 
[INFO] Adding repository http://dl.dropbox.com/u/1236385/adt 
[INFO] Fetching artifacts.jar (0B of 783B at 0B/s) from http://dl.dropbox.com/u/1236385/adt/ 
[INFO] 1 operation remaining. 
[INFO] Fetching artifacts.jar (783B of 783B at 0B/s) from http://dl.dropbox.com/u/1236385/adt/ 
[INFO] Resolving dependencies of MavenProject: me.fixpoint.eared:me.fixpoint.eared.plugin:0.0.4-SNAPSHOT @ D:\Projects\eared\plugin\pom.xml 
[INFO] Cannot complete the request. Generating details. 
[INFO] Cannot complete the request. Generating details. 
[INFO] {osgi.ws=win32, osgi.os=win32, osgi.arch=x86_64, org.eclipse.update.install.features=true} 
[ERROR] Cannot resolve project dependencies: 
[ERROR] Software being installed: me.fixpoint.eared 0.4.0 
[ERROR] Missing requirement: me.fixpoint.eared 0.4.0 requires 'bundle com.android.ide.eclipse.adt 0.0.0' but it could not be found 
[ERROR] 
[ERROR] Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from me.fixpoint.eared 0.4.0 to bundle com.android.ide.eclipse.adt 0.0.0.", "No solution found because the problem is unsatisfiable."] -> [Help 1] 
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from me.fixpoint.eared 0.4.0 to bundle com.android.ide.eclipse.adt 0.0.0.", "No solution found because the problem is unsatisfiable."] 

왜 찾을 수 com.android.ide.eclipse.adt : 업데이트 http://dl.dropbox.com/u/1236385/adt에서 사이트,하지만 오류는 동일?

경우에 따라 here's link to the master POM입니다.

답변

3

이전 스타일 업데이트 사이트에는 아티팩트의 종속성에 대한 불완전한 메타 데이터 만 있습니다. 그러나 Tycho는 종속성 해결 메커니즘에 대한 완전한 종속성 메타 데이터가 필요하므로 이전 스타일의 업데이트 사이트를 사용할 수 없습니다. 보관 용 계정은 최신 P2 보관 파일 형식 일 수 있지만 불완전한 메타 데이터가 포함되어 있습니다. (p2에서는 불완전한 메타 데이터가있는 항목을 "partial IUs"라고 부릅니다.) Tycho 0.18.0 이전에는 이러한 부분 IU가 자동으로 삭제되어 설명 된 해결 문제가 발생했습니다. Tycho 0.18.0에서 개선되었습니다. 해당 버전 이후로 Tycho는 불완전한 메타 데이터가 포함 된 저장소를 가리키는 오류 메시지와 함께 실패합니다.

문제를 해결하려면 프로젝트에 적절한 p2 저장소를 제공하는 것이 가장 좋습니다. p2는 이와 다른 publisher applications을 제공합니다. 이론적으로 게시자 응용 프로그램을 직접 호출 할 수도 있지만 이는 일시적인 해결 방법 일뿐입니다.

+0

p2 저장소의 향후 문제에 대한 힌트 : [Igor 's p2 browser] (https://github.com/ifedorenko/p2-browser)는이를 분석하기위한 훌륭한 도구입니다. – oberlies