无法在OpenShift上解析目标定义

时间:2014-05-17 10:19:02

标签: openshift tycho p2

我正在尝试使用Tycho构建来运行OpenShift服务器。在本地解析目标定义和构建工作正常,但在部署时我收到以下错误:

  

无法在http://download.eclipse.org/rt/rap/2.2/content.xml读取存储库。许可被拒绝

我不确定它在Tycho配置中是否存在问题(但据我记忆,我没有在构建反应堆之外做任何事情来使Tycho工作)或OpenShift。有人能告诉我问题是什么或如何缩小它?


我尝试从目标平台文件切换到在 pom.xml 中定义存储库。然后我收到类似的错误消息:

  

无法从位置http://download.eclipse.org/rt/rap/2.2

加载ID为“rap”的p2存储库

我发现a Linux bug可能是相关的。它对我没有帮助,因为我甚至无法确认服务器是Debian。我试图让Jenkins在其他平台上构建并尝试在(看似未记录的)“平台”字段中的任何缩写或“Windows”组合,但这些值都没有改变操作系统。


最后让Maven使用参数(如何参见here)。就我所见,日志显示的并非一切:

[INFO] Computing target platform for MavenProject: org.acme.dummy:org.acme.dummy.feature:0.0.1-SNAPSHOT @ /var/lib/openshift/537cb333e0b8cd68ad000187/app-root/runtime/repo/org.acme.dummy.feature/pom.xml
[DEBUG] Added p2 repository rap-repository (http://download.eclipse.org/rt/rap/2.2)
[DEBUG] Using default execution environment 'JavaSE-1.6'
[DEBUG] Registered artifact repository org.eclipse.tycho.repository.registry.facade.RepositoryBlackboardKey(uri=file:/resolution-context-artifacts@/var/lib/openshift/537cb333e0b8cd68ad000187/app-root/runtime/repo/org.acmr.dummy.feature)
May 21, 2014 10:15:59 AM org.apache.http.impl.client.DefaultRequestDirector tryConnect
INFO: I/O exception (java.net.BindException) caught when connecting to the target host: Permission denied

它正在重试连接几次,然后有上述异常:

!ENTRY org.eclipse.equinox.p2.transport.ecf 2 0 2014-05-21 10:16:00.073
!MESSAGE Connection to http://download.eclipse.org/rt/rap/2.2/p2.index failed on Permission denied. Retry attempt 0 started
!STACK 0
java.net.BindException: Permission denied
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
    at java.net.Socket.bind(Socket.java:631)
    at org.eclipse.ecf.internal.provider.filetransfer.httpclient4.ECFHttpClientProtocolSocketFactory.connectSocket(ECFHttpClientProtocolSocketFactory.java:82)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
    at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:150)
    at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
    at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:575)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)

0 个答案:

没有答案