저는 회사 방화벽 뒤에서 Eclipse Kura 프로젝트를 빌드하려고합니다. 내가 가진 프록시를 설정하려고했습니다Tycho maven plugin에서 프록시를 사용하는 방법은 무엇입니까?
Internal error: java.lang.RuntimeException: Failed to load p2 repository with ID 'eclipse.kura' from location http://packagedrone.eclipse.org/p2/eclipse-kura-2.1
(...)
Caused by: java.lang.RuntimeException: Failed to load p2 repository with ID 'eclipse.kura' from location http://packagedrone.eclipse.org/p2/eclipse-kura-2.1
at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.loadMetadataRepository(TargetPlatformFactoryImpl.java:296)
(...)
Caused by: java.net.SocketTimeoutException: Read timed out
: 나는 쿠라/예/org.eclipse.kura.example.camel.aggregation (mvn clean install
)을 구축 할 때와
, 그것은 끝 :
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho-version}</version>
<extensions>true</extensions>
<configuration>
<argLine>-Dhttp.proxyHost=my-proxy-web -Dhttp.proxyPort=3128</argLine>
</configuration>
</plugin>
하지만 작동하지 않았습니다. Kura 프로젝트가 tycho-maven-plugin의 v0.20.0을 사용 중입니다. 1.0.0으로 업그레이드하려고 시도했지만 작동하지 않았습니다. 내가 설정 브라우저에서 같은 프록시, 내가 도달 할 수
"http://packagedrone.eclipse.org/p2/eclipse-kura-2.1"
UPDATE : 나는 이미 여러 저장소에서 종속성을 찾기 위해 노력 받는다는 Settings.XML이, 내 프록시를 정의하지만, -X 및 -s Settings.XML이 실행되면
받는다는 디버그 로그 :
<proxies>
<proxy>
<id>main-proxy</id>
<active>true</active>
<protocol>http</protocol>
<host>my-proxy-web</host>
<port>3128</port>
<nonProxyHosts>*.mycomp.fr</nonProxyHosts>
</proxy>
</proxies>
UPDATE 2 : 이는 티코 받는다는 플러그인에 의해 고려되지
[DEBUG] Clearing proxy settings in OSGi runtime
(이것은, 어떤 구성 "프록시"소스 플러그인없는 티코에 해당하는 "프록시"없이 "무시 프록시"의 유일한 언급이다가 더 "활성"프록시가 발견되지 않았습니다처럼)
[INFO] Computing target platform for MavenProject: org.eclipse.kura:org.eclipse.kura.example.camel.aggregation:1.1.0 @ /home/tristan/Dev/projects/IOT/kura.git/kura/examples/org.eclipse.kura.example.camel.aggregation/pom.xml
[DEBUG] Added p2 repository eclipse.kura (http://packagedrone.eclipse.org/p2/eclipse-kura-2.1)
[DEBUG] Using execution environment 'JavaSE-1.7' configured in Bundle-RequiredExecutionEnvironment
[DEBUG] Registered artifact repository org.eclipse.tycho.repository.registry.facade.RepositoryBlackboardKey(uri=file:/[email protected]/home/tristan/Dev/projects/IOT/kura.git/kura/examples/org.eclipse.kura.example.camel.aggregation)
[INFO] Adding repository http://packagedrone.eclipse.org/p2/eclipse-kura-2.1
[WARNING] Failed to access p2 repository http://packagedrone.eclipse.org/p2/eclipse-kura-2.1, use local cache.
org.eclipse.equinox.p2.core.ProvisionException: Unable to read repository at http://packagedrone.eclipse.org/p2/eclipse-kura-2.1/content.xml.
(...)
Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to packagedrone.eclipse.org:80 timed out
업데이트 3 : "UPDATE 2"에 대해 나쁘다.이 테스트에서 잘못된 설정을 사용하여 많은 테스트를 수행했습니다. 여기
올바르게 프록시 설정 (계속 실패)로 출력 :mvn clean install -X -s good-settings-with-proxy.xml
[DEBUG] Clearing proxy settings in OSGi runtime
[DEBUG] Configuring proxy for protocol http: host=10.91.31.45, port=3128
!ENTRY org.eclipse.core.net 1 0 2017-04-28 18:02:58.106
!MESSAGE System property http.proxyHost is not set but should be 10.91.31.45.
!ENTRY org.eclipse.core.net 1 0 2017-04-28 18:02:58.106
!MESSAGE System property http.proxyPort is not set but should be 3128.
그리고 만약
명시 적으로 I 설치 경고에 요청 시스템 속성 :mvn clean install -X -Dhttp.proxyHost=10.91.31.45 -Dhttp.proxyPort=3128 -s /home/tristan/CODE/apache-maven-3.2.3/conf/settings.with-proxy.xml
!ENTRY org.eclipse.core.net 1 0 2017-04-28 18:02:58.079
!MESSAGE System property http.proxyHost has been set to 10.91.31.45 by an external source. This value will be overwritten using the values from the preferences
!ENTRY org.eclipse.core.net 1 0 2017-04-28 18:02:58.079
!MESSAGE System property http.proxyPort has been set to 3128 by an external source. This value will be overwritten using the values from the preferences
[DEBUG] Clearing proxy settings in OSGi runtime
[DEBUG] Configuring proxy for protocol http: host=10.91.31.45, port=3128, nonProxyHosts=*.edf.fr
!ENTRY org.eclipse.core.net 1 0 2017-04-28 18:02:58.106
!MESSAGE System property http.proxyHost is not set but should be 10.91.31.45.
!ENTRY org.eclipse.core.net 1 0 2017-04-28 18:02:58.106
!MESSAGE System property http.proxyPort is not set but should be 3128.
settings.xml 파일에 프록시를 정의하십시오 ... – khmarbaise
짐작할 수 있듯이 이미 정의되어 있으므로 종속성에는 도달하지만 작동하지는 않습니다. – Tristan
settings.xml에서 지정된 저장소 ID에 대한 프록시를 올바르게 정의 했습니까? – khmarbaise